diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-07-03 09:13:21 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-07-03 09:13:21 +0000 |
commit | 935daf2d0d65edacfafe32868174c6c634bd35c3 (patch) | |
tree | f7e3dcfdb4e46e2c52d89e5c15ef44548c9fd736 | |
parent | 7f90ed4460793f51b636c54afcf8fe71fef66fa8 (diff) | |
download | busybox-w32-935daf2d0d65edacfafe32868174c6c634bd35c3.tar.gz busybox-w32-935daf2d0d65edacfafe32868174c6c634bd35c3.tar.bz2 busybox-w32-935daf2d0d65edacfafe32868174c6c634bd35c3.zip |
hide shadow using stuff when CONFIG_FEATURE_SHADOWPASSWDS
is not set
-Erik
-rw-r--r-- | loginutils/vlock.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/loginutils/vlock.c b/loginutils/vlock.c index a26999f89..18f4b9407 100644 --- a/loginutils/vlock.c +++ b/loginutils/vlock.c | |||
@@ -41,12 +41,14 @@ | |||
41 | #include "busybox.h" | 41 | #include "busybox.h" |
42 | 42 | ||
43 | static struct passwd *pw; | 43 | static struct passwd *pw; |
44 | static struct spwd *spw; | ||
45 | static struct vt_mode ovtm; | 44 | static struct vt_mode ovtm; |
46 | static struct termios oterm; | 45 | static struct termios oterm; |
47 | static int vfd; | 46 | static int vfd; |
48 | static int o_lock_all = 0; | 47 | static int o_lock_all = 0; |
49 | 48 | ||
49 | #ifdef CONFIG_FEATURE_SHADOWPASSWDS | ||
50 | static struct spwd *spw; | ||
51 | |||
50 | /* getspuid - get a shadow entry by uid */ | 52 | /* getspuid - get a shadow entry by uid */ |
51 | struct spwd *getspuid(uid_t uid) | 53 | struct spwd *getspuid(uid_t uid) |
52 | { | 54 | { |
@@ -64,6 +66,7 @@ struct spwd *getspuid(uid_t uid) | |||
64 | endspent(); | 66 | endspent(); |
65 | return (sp); | 67 | return (sp); |
66 | } | 68 | } |
69 | #endif | ||
67 | 70 | ||
68 | static void release_vt(int signo) | 71 | static void release_vt(int signo) |
69 | { | 72 | { |