feat(chvt): use custom implementation instead of system()

Calling system() is vulnerable and shouldn't be used.
This commit is contained in:
grialion
2024-08-06 17:11:18 +02:00
parent eeba4a5f39
commit e745b27a68
4 changed files with 53 additions and 9 deletions

View File

@@ -10,10 +10,10 @@ ALLFLAGS=$(CFLAGS) -I$(IDIR)
LIBS=-lm -lpam -lpam_misc
_DEPS = util.h ui.h config.h auth.h efield.h keys.h users.h sessions.h
_DEPS = util.h ui.h config.h auth.h efield.h keys.h users.h sessions.h chvt.h
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))
_OBJ = main.o util.o ui.o config.o auth.o efield.o users.o sessions.o
_OBJ = main.o util.o ui.o config.o auth.o efield.o users.o sessions.o chvt.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
$(ODIR)/%.o: $(CDIR)/%.c $(DEPS)