Группа :: Система/X11
Пакет: slock
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: slock-1.4-alt.patch
Скачать
Скачать
config.def.h | 4 ++--
config.mk | 8 ++------
2 files changed, 4 insertions(+), 8 deletions(-)
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/config.mk b/config.mk
index 74429ae..8be5d5c 100644
--- a/config.mk
+++ b/config.mk
@@ -7,17 +7,13 @@ VERSION = 1.4
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
-X11INC = /usr/X11R6/include
-X11LIB = /usr/X11R6/lib
-
# includes and libs
-INCS = -I. -I/usr/include -I${X11INC}
-LIBS = -L/usr/lib -lc -lcrypt -L${X11LIB} -lX11 -lXext -lXrandr
+LIBS = -lcrypt -lX11 -lXext -lXrandr
# flags
CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE -DHAVE_SHADOW_H
CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
-LDFLAGS = -s ${LIBS}
+LDFLAGS = ${LIBS}
COMPATSRC = explicit_bzero.c
# On OpenBSD and Darwin remove -lcrypt from LIBS