projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ftp://ftp.krokus.ru/pub/OpenBSD/distfiles/xscreensaver-5.01.tar.gz
[xscreensaver]
/
driver
/
passwd-pam.c
diff --git
a/driver/passwd-pam.c
b/driver/passwd-pam.c
index 5c4f74f2d442fa3de14b829f5c91dcab2379b6af..a4b132123f7c8ce63078961b80617466efef6a54 100644
(file)
--- a/
driver/passwd-pam.c
+++ b/
driver/passwd-pam.c
@@
-288,6
+288,7
@@
pam_passwd_valid_p (const char *typed_passwd, Bool verbose_p)
goto DONE;
}
goto DONE;
}
+#ifdef ALLOW_ROOT_PASSWD
/* If that didn't work, set the user to root, and try to authenticate again.
*/
if (user) free (user);
/* If that didn't work, set the user to root, and try to authenticate again.
*/
if (user) free (user);
@@
-310,6
+311,8
@@
pam_passwd_valid_p (const char *typed_passwd, Bool verbose_p)
fprintf (stderr, "%s: pam_authenticate (...) ==> %d (%s)\n",
blurb(), status, PAM_STRERROR(pamh, status));
fprintf (stderr, "%s: pam_authenticate (...) ==> %d (%s)\n",
blurb(), status, PAM_STRERROR(pamh, status));
+#endif /* ALLOW_ROOT_PASSWD */
+
DONE:
if (user) free (user);
if (pamh)
DONE:
if (user) free (user);
if (pamh)