X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Fpasswd-pam.c;h=a4b132123f7c8ce63078961b80617466efef6a54;hp=5c4f74f2d442fa3de14b829f5c91dcab2379b6af;hb=07faf451b99879183ed7e909e43a0e065be1ee7f;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439 diff --git a/driver/passwd-pam.c b/driver/passwd-pam.c index 5c4f74f2..a4b13212 100644 --- 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; } +#ifdef ALLOW_ROOT_PASSWD /* 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)); +#endif /* ALLOW_ROOT_PASSWD */ + DONE: if (user) free (user); if (pamh)