aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-07-03 09:13:21 +0000
committerEric Andersen <andersen@codepoet.org>2002-07-03 09:13:21 +0000
commit935daf2d0d65edacfafe32868174c6c634bd35c3 (patch)
treef7e3dcfdb4e46e2c52d89e5c15ef44548c9fd736
parent7f90ed4460793f51b636c54afcf8fe71fef66fa8 (diff)
downloadbusybox-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.c5
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
43static struct passwd *pw; 43static struct passwd *pw;
44static struct spwd *spw;
45static struct vt_mode ovtm; 44static struct vt_mode ovtm;
46static struct termios oterm; 45static struct termios oterm;
47static int vfd; 46static int vfd;
48static int o_lock_all = 0; 47static int o_lock_all = 0;
49 48
49#ifdef CONFIG_FEATURE_SHADOWPASSWDS
50static struct spwd *spw;
51
50/* getspuid - get a shadow entry by uid */ 52/* getspuid - get a shadow entry by uid */
51struct spwd *getspuid(uid_t uid) 53struct 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
68static void release_vt(int signo) 71static void release_vt(int signo)
69{ 72{