Fixed compile error on Debian based systems.
This commit is contained in:
parent
c4caadde93
commit
98249359c5
2 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
|
@ -1,5 +1,5 @@
|
|||
all:
|
||||
$(CC) -Werror -lpam -lpam_misc -o checkpw checkpw.c
|
||||
$(CC) -Werror -o checkpw checkpw.c -lpam -lpam_misc
|
||||
|
||||
clean:
|
||||
rm -f ./checkpw
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
||||
```
|
||||
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/
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue