From 5263c48fe0269d351562075c34b068b9594cd68a Mon Sep 17 00:00:00 2001 From: rmntgx Date: Sat, 7 Jun 2025 12:11:30 +0500 Subject: [PATCH 1/2] fix: removed unnecessary libraries --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8affd40..379e9be 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ CFLAGS?=-O3 -Wall _CFLAGS=-I$(DIR) ALLFLAGS=$(CFLAGS) -I$(IDIR) -LIBS=-lm -lpam -lpam_misc +LIBS=-lpam _DEPS = util.h ui.h config.h auth.h efield.h keys.h users.h sessions.h chvt.h DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS)) From da9118346b072fc5cb5a3dca95007da76d11378e Mon Sep 17 00:00:00 2001 From: javalsai Date: Sun, 8 Jun 2025 13:50:28 +0200 Subject: [PATCH 2/2] feat: add config open error guide message --- src/config.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.c b/src/config.c index b16efb6..d4857b3 100644 --- a/src/config.c +++ b/src/config.c @@ -145,6 +145,9 @@ struct config* parse_config(char* path) { FILE* fd = fopen(path, "r"); if (fd == NULL || (stat(path, &sb) == -1)) { perror("fopen"); + fprintf(stderr, + "Please place a config file at /etc/lidm.ini or set the LIDM_CONF " + "env variable"); return NULL; }