pinosaur
/
slock.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
732d2b3
)
applied Markus' patch to die in case /etc/passwd is unavailable
author
Anselm R Garbe
<anselm@garbe.us>
Thu, 21 Apr 2011 08:22:47 +0000
(08:22 +0000)
committer
Anselm R Garbe
<anselm@garbe.us>
Thu, 21 Apr 2011 08:22:47 +0000
(08:22 +0000)
slock.c
patch
|
blob
|
history
diff --git
a/slock.c
b/slock.c
index
eece4e3
..
be10f5d
100644
(file)
--- 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