|
|
@ -321,8 +321,9 @@ main(int argc, char **argv) { |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
hash = gethash(); |
|
|
|
hash = gethash(); |
|
|
|
if (strlen(hash) < 2) |
|
|
|
errno = 0; |
|
|
|
die("slock: failed to get user password hash.\n"); |
|
|
|
if (!crypt("", hash)) |
|
|
|
|
|
|
|
die("slock: crypt: %s\n", strerror(errno)); |
|
|
|
|
|
|
|
|
|
|
|
if (!(dpy = XOpenDisplay(NULL))) |
|
|
|
if (!(dpy = XOpenDisplay(NULL))) |
|
|
|
die("slock: cannot open display\n"); |
|
|
|
die("slock: cannot open display\n"); |
|
|
|