slock

simple X display locker utility
git clone git://git.suckless.org/slock
Log | Files | Refs | README | LICENSE

commit ede2935e10fdab76994676d5052b571907612199
parent 732d2b3bf5da3a1883b3246062aa556a59b8517c
Author: Anselm R Garbe <anselm@garbe.us>
Date:   Thu, 21 Apr 2011 08:22:47 +0000

applied Markus' patch to die in case /etc/passwd is unavailable
Diffstat:
Mslock.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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