blob: a5043b90978b05e0f83682f265e723c99ff85274 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- a/slock.c
+++ b/slock.c
@@ -310,6 +310,8 @@
#ifndef HAVE_BSD_AUTH
pws = getpw();
+ if(strlen(pws) < 2)
+ die("This user has no password set.\n");
#endif
if (!(dpy = XOpenDisplay(0)))
|