X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Fpasswd-helper.c;h=a3a6b9242ad0c06cc6da2486d60e098fdb36c7cb;hp=7d41d6285c9174559ff491cb13ae53e4e928a15e;hb=c494fd2e6b3b25582375d62e40f4f5cc984ca424;hpb=07faf451b99879183ed7e909e43a0e065be1ee7f diff --git a/driver/passwd-helper.c b/driver/passwd-helper.c index 7d41d628..a3a6b924 100644 --- a/driver/passwd-helper.c +++ b/driver/passwd-helper.c @@ -135,8 +135,10 @@ ext_passwd_valid_p (const char *typed_passwd, int verbose_p) res = ext_run (pw->pw_name, typed_passwd, verbose_p); endpwent(); +#ifdef ALLOW_ROOT_PASSWD if (!res) res = ext_run ("root", typed_passwd, verbose_p); +#endif /* ALLOW_ROOT_PASSWD */ return res; }