diff --git a/Makefile b/Makefile index 6d74b21..ddb1e1f 100644 --- a/Makefile +++ b/Makefile @@ -11,10 +11,7 @@ all: slock .c.o: ${CC} -c ${CFLAGS} $< -${OBJ}: config.h config.mk arg.h util.h - -config.h: - cp config.def.h $@ +${OBJ}: config.def.h config.mk arg.h util.h slock: ${OBJ} ${CC} -o $@ ${OBJ} ${LDFLAGS} diff --git a/config.def.h b/config.def.h index 9855e21..973138a 100644 --- a/config.def.h +++ b/config.def.h @@ -1,6 +1,6 @@ /* user and group to drop privileges to */ static const char *user = "nobody"; -static const char *group = "nogroup"; +static const char *group = "nobody"; static const char *colorname[NUMCOLS] = { [INIT] = "black", /* after initialization */ @@ -9,4 +9,4 @@ static const char *colorname[NUMCOLS] = { }; /* treat a cleared input like a wrong password (color) */ -static const int failonclear = 1; +static const int failonclear = 0; diff --git a/slock.c b/slock.c index b2f14e3..c6576e9 100644 --- a/slock.c +++ b/slock.c @@ -44,7 +44,7 @@ struct xrandr { int errbase; }; -#include "config.h" +#include "config.def.h" static void die(const char *errstr, ...)