Update bsd-auth string.
Thanks to Hiltjo for discovering this.
This commit is contained in:
parent
c2f975773d
commit
b87bfa2343
1 changed files with 1 additions and 1 deletions
2
slock.c
2
slock.c
|
@ -157,7 +157,7 @@ readpw(Display *dpy, const char *pws)
|
||||||
case XK_Return:
|
case XK_Return:
|
||||||
passwd[len] = 0;
|
passwd[len] = 0;
|
||||||
#ifdef HAVE_BSD_AUTH
|
#ifdef HAVE_BSD_AUTH
|
||||||
running = !auth_userokay(getlogin(), NULL, "auth-xlock", passwd);
|
running = !auth_userokay(getlogin(), NULL, "auth-slock", passwd);
|
||||||
#else
|
#else
|
||||||
running = !!strcmp(crypt(passwd, pws), pws);
|
running = !!strcmp(crypt(passwd, pws), pws);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue