X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Fpasswd-pwent.c;h=a2d5e0c8ac301fa600959591bf57a99c071c2dc9;hb=de041722414a2e31c1c04caa10aaec9d6952e9b4;hp=6e83e0f4a5440f757353b2c7dcb108b01a28f42f;hpb=8e0f39b4a12b9a908af2b3b175ebe87c14b4a6ab;p=xscreensaver diff --git a/driver/passwd-pwent.c b/driver/passwd-pwent.c index 6e83e0f4..a2d5e0c8 100644 --- a/driver/passwd-pwent.c +++ b/driver/passwd-pwent.c @@ -195,9 +195,15 @@ get_encrypted_passwd(const char *user) *s = 0; } +#ifndef HAVE_PAM + /* We only issue this warning if not compiled with support for PAM. + If we're using PAM, it's not unheard of that normal pwent passwords + would be unavailable. */ + if (!result) fprintf (stderr, "%s: couldn't get password of \"%s\"\n", blurb(), (user ? user : "(null)")); +#endif /* !HAVE_PAM */ return result; } @@ -213,7 +219,7 @@ get_encrypted_passwd(const char *user) #ifndef VMS Bool -pwent_lock_init (int argc, char **argv, Bool verbose_p) +pwent_priv_init (int argc, char **argv, Bool verbose_p) { char *u; @@ -234,6 +240,17 @@ pwent_lock_init (int argc, char **argv, Bool verbose_p) } +Bool +pwent_lock_init (int argc, char **argv, Bool verbose_p) +{ + if (encrypted_user_passwd) + return True; + else + return False; +} + + + static Bool passwds_match_p (const char *cleartext, const char *ciphertext) {