diff options
Diffstat (limited to 'slock.c')
-rw-r--r-- | slock.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -228,6 +228,9 @@ main(int argc, char **argv) { | |||
228 | else if(argc != 1) | 228 | else if(argc != 1) |
229 | usage(); | 229 | usage(); |
230 | 230 | ||
231 | if(!getpwuid(getuid())) | ||
232 | die("no passwd entry for you"); | ||
233 | |||
231 | #ifndef HAVE_BSD_AUTH | 234 | #ifndef HAVE_BSD_AUTH |
232 | pws = get_password(); | 235 | pws = get_password(); |
233 | #endif | 236 | #endif |