← Commit list

44c0ab410

Denys Vlasenko
Denys Vlasenko
2017-04-13
SUCCESS Duration: 142s

Subject

libbb: fix "error: redefinition of 'is_tty_secure'"

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/securetty.c+2 -0
@@ -6,6 +6,7 @@
*/
#include "libbb.h"
+#if ENABLE_FEATURE_SECURETTY && !ENABLE_PAM
int FAST_FUNC is_tty_secure(const char *short_tty)
{
char *buf = (char*)"/etc/securetty"; /* any non-NULL is ok */
@@ -22,3 +23,4 @@ int FAST_FUNC is_tty_secure(const char *short_tty)
*/
return buf != NULL;
}
+#endif