[git commit] libbb: fix "error: redefinition of 'is_tty_secure'"
Denys Vlasenko
vda.linux at googlemail.com
Thu Apr 13 15:55:05 UTC 2017
commit: https://git.busybox.net/busybox/commit/?id=44c0ab410278656b4b82ec20a24c3644a254da89
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
libbb/securetty.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libbb/securetty.c b/libbb/securetty.c
index 67a1236..21354e2 100644
--- a/libbb/securetty.c
+++ b/libbb/securetty.c
@@ -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
More information about the busybox-cvs
mailing list