X-Git-Url: https://git.xinqibao.xyz/slock.git/blobdiff_plain/732d2b3bf5da3a1883b3246062aa556a59b8517c..ede2935e10fdab76994676d5052b571907612199:/slock.c?ds=sidebyside 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