summaryrefslogtreecommitdiff
path: root/slock.c
diff options
context:
space:
mode:
Diffstat (limited to 'slock.c')
-rw-r--r--slock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/slock.c b/slock.c
index eece4e3..be10f5d 100644
--- a/slock.c
+++ b/slock.c
@@ -228,6 +228,9 @@ main(int argc, char **argv) {
else if(argc != 1)
usage();
+ if(!getpwuid(getuid()))
+ die("no passwd entry for you");
+
#ifndef HAVE_BSD_AUTH
pws = get_password();
#endif