X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Fpasswd.c;h=2b2eadbb81b5b58bd3438cd5bcb132ceed08e238;hp=d331b3bb26d17e52f31ce0b4dbfd7025604374fd;hb=2a991a811de4c7b22f812682b267b616a809fd9a;hpb=ce3185de9d9705e259f2b60dd4b5509007fa17d4 diff --git a/driver/passwd.c b/driver/passwd.c index d331b3bb..2b2eadbb 100644 --- a/driver/passwd.c +++ b/driver/passwd.c @@ -21,6 +21,10 @@ # include #endif +#ifdef HAVE_CRYPT_H +# include +#endif + #include #include #include @@ -88,7 +92,7 @@ #define False 0 -extern char *progname; +extern const char *blurb(void); static char *encrypted_root_passwd = 0; static char *encrypted_user_passwd = 0; @@ -179,7 +183,7 @@ get_encrypted_passwd(const char *user) /* This has to be called before we've changed our effective user ID, - because it might need priveleges to get at the encrypted passwords. + because it might need privileges to get at the encrypted passwords. Returns false if we weren't able to get any passwords, and therefore, locking isn't possible. (It will also have written to stderr.) */