X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Fpasswd-pwent.c;h=a2d5e0c8ac301fa600959591bf57a99c071c2dc9;hp=5bfaec9ec860fa32cc6b53c7d18b02bac01842af;hb=278c59e14c53fd412b734e699bd4f314f766f804;hpb=551b3de3f619c04c2dd1971ee9b3f02e270c28c9 diff --git a/driver/passwd-pwent.c b/driver/passwd-pwent.c index 5bfaec9e..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; }