diff options
author | Eric Andersen | 2002-07-03 09:13:21 +0000 |
---|---|---|
committer | Eric Andersen | 2002-07-03 09:13:21 +0000 |
commit | 935daf2d0d65edacfafe32868174c6c634bd35c3 (patch) | |
tree | f7e3dcfdb4e46e2c52d89e5c15ef44548c9fd736 | |
parent | 7f90ed4460793f51b636c54afcf8fe71fef66fa8 (diff) | |
download | busybox-935daf2d0d65edacfafe32868174c6c634bd35c3.zip busybox-935daf2d0d65edacfafe32868174c6c634bd35c3.tar.gz |
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 a26999f..18f4b94 100644 --- a/loginutils/vlock.c +++ b/loginutils/vlock.c @@ -41,12 +41,14 @@ #include "busybox.h" static struct passwd *pw; -static struct spwd *spw; static struct vt_mode ovtm; static struct termios oterm; static int vfd; static int o_lock_all = 0; +#ifdef CONFIG_FEATURE_SHADOWPASSWDS +static struct spwd *spw; + /* getspuid - get a shadow entry by uid */ struct spwd *getspuid(uid_t uid) { @@ -64,6 +66,7 @@ struct spwd *getspuid(uid_t uid) endspent(); return (sp); } +#endif static void release_vt(int signo) { |