projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.38.tar.gz
[xscreensaver]
/
driver
/
passwd-pwent.c
diff --git
a/driver/passwd-pwent.c
b/driver/passwd-pwent.c
index a2d5e0c8ac301fa600959591bf57a99c071c2dc9..bb0edfc23d26076e0fb38ade9e1aa19294dfb10b 100644
(file)
--- a/
driver/passwd-pwent.c
+++ b/
driver/passwd-pwent.c
@@
-104,6
+104,11
@@
static char *encrypted_user_passwd = 0;
# define ROOT "root"
#endif
# define ROOT "root"
#endif
+#ifndef VMS
+Bool pwent_priv_init (int argc, char **argv, Bool verbose_p);
+Bool pwent_lock_init (int argc, char **argv, Bool verbose_p);
+Bool pwent_passwd_valid_p (const char *typed_passwd, Bool verbose_p);
+#endif
#ifndef VMS
#ifndef VMS
@@
-288,11
+293,13
@@
pwent_passwd_valid_p (const char *typed_passwd, Bool verbose_p)
passwds_match_p (typed_passwd, encrypted_user_passwd))
return True;
passwds_match_p (typed_passwd, encrypted_user_passwd))
return True;
+#ifdef ALLOW_ROOT_PASSWD
/* do not allow root to have a null password. */
else if (typed_passwd[0] &&
encrypted_root_passwd &&
passwds_match_p (typed_passwd, encrypted_root_passwd))
return True;
/* do not allow root to have a null password. */
else if (typed_passwd[0] &&
encrypted_root_passwd &&
passwds_match_p (typed_passwd, encrypted_root_passwd))
return True;
+#endif /* ALLOW_ROOT_PASSWD */
else
return False;
else
return False;