projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
107159e
)
libbb: fix "error: redefinition of 'is_tty_secure'"
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 13 Apr 2017 15:55:05 +0000
(17:55 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 13 Apr 2017 15:55:05 +0000
(17:55 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/securetty.c
patch
|
blob
|
history
diff --git
a/libbb/securetty.c
b/libbb/securetty.c
index 67a12368977f938f28082851a4ff6b63b9416bb0..21354e2fa2fa99d2f516f88d80c4e0c95dc0817f 100644
(file)
--- 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