Fixed compile error on Debian based systems.

This commit is contained in:
Johannes Findeisen 2024-08-27 20:12:59 +02:00
commit 98249359c5
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
all: all:
$(CC) -Werror -lpam -lpam_misc -o checkpw checkpw.c $(CC) -Werror -o checkpw checkpw.c -lpam -lpam_misc
clean: clean:
rm -f ./checkpw rm -f ./checkpw

View file

@ -24,7 +24,7 @@ The code only supports verifying passwords for user id 1000 by default. Look a t
Set MAX_UID and MIN_UID in the code or you can compile checkpw without editing the code using the following command and install it manually: Set MAX_UID and MIN_UID in the code or you can compile checkpw without editing the code using the following command and install it manually:
``` ```
gcc -Werror -lpam -lpam_misc -DMAX_UID=1000 -DMIN_UID=1000 -o checkpw checkpw.c gcc -Werror -DMAX_UID=1000 -DMIN_UID=1000 -o checkpw checkpw.c -lpam -lpam_misc
sudo cp ./checkpw /usr/bin/ sudo cp ./checkpw /usr/bin/
``` ```