projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://packetstormsecurity.org/UNIX/admin/xscreensaver-3.31.tar.gz
[xscreensaver]
/
driver
/
passwd-pwent.c
diff --git
a/driver/passwd-pwent.c
b/driver/passwd-pwent.c
index 5bfaec9ec860fa32cc6b53c7d18b02bac01842af..a2d5e0c8ac301fa600959591bf57a99c071c2dc9 100644
(file)
--- a/
driver/passwd-pwent.c
+++ b/
driver/passwd-pwent.c
@@
-195,9
+195,15
@@
get_encrypted_passwd(const char *user)
*s = 0;
}
*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)"));
if (!result)
fprintf (stderr, "%s: couldn't get password of \"%s\"\n",
blurb(), (user ? user : "(null)"));
+#endif /* !HAVE_PAM */
return result;
}
return result;
}