aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/securetty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/securetty.c b/libbb/securetty.c
index 67a123689..21354e2fa 100644
--- a/libbb/securetty.c
+++ b/libbb/securetty.c
@@ -6,6 +6,7 @@
6 */ 6 */
7#include "libbb.h" 7#include "libbb.h"
8 8
9#if ENABLE_FEATURE_SECURETTY && !ENABLE_PAM
9int FAST_FUNC is_tty_secure(const char *short_tty) 10int FAST_FUNC is_tty_secure(const char *short_tty)
10{ 11{
11 char *buf = (char*)"/etc/securetty"; /* any non-NULL is ok */ 12 char *buf = (char*)"/etc/securetty"; /* any non-NULL is ok */
@@ -22,3 +23,4 @@ int FAST_FUNC is_tty_secure(const char *short_tty)
22 */ 23 */
23 return buf != NULL; 24 return buf != NULL;
24} 25}
26#endif