logo

checkpassword-ng

Uniform password checking interface for applications
commit: 8776bd0738588908390f3872564629b2235a5211
parent 90f0650f23cf5086fb3bd28e082a1009b09c0e5e
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon,  2 Jan 2023 01:02:15 +0100

Makefile: Make sure *DIR are directories

Diffstat:

MMakefile12++++++------
Mcheckpassword.c2+-
Mchkpw.c2+-
3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/Makefile b/Makefile @@ -40,14 +40,14 @@ libchkpw.a: chkpw.o .PHONY: install install: all - mkdir -p $(DESTDIR)$(BINDIR) + mkdir -p $(DESTDIR)$(BINDIR)/ cp -p $(EXE) $(DESTDIR)$(BINDIR)/$(EXE) - mkdir -p $(DESTDIR)$(LIBDIR) + mkdir -p $(DESTDIR)$(LIBDIR)/ cp -p $(LIBSO) $(LIBA) $(DESTDIR)$(LIBDIR)/ - mkdir -p $(DESTDIR)$(MANDIR)/man3 - cp -p chkpwd.8 $(DESTDIR)$(MANDIR)/man3 - mkdir -p $(DESTDIR)$(MANDIR)/man8 - cp -p $(EXE).8 $(DESTDIR)$(MANDIR)/man8 + mkdir -p $(DESTDIR)$(MANDIR)/man3/ + cp -p chkpwd.8 $(DESTDIR)$(MANDIR)/man3/ + mkdir -p $(DESTDIR)$(MANDIR)/man8/ + cp -p $(EXE).8 $(DESTDIR)$(MANDIR)/man8/ .PHONY: clean clean: diff --git a/checkpassword.c b/checkpassword.c @@ -62,7 +62,7 @@ main(int argc, char *argv[]) return ERR_MISUSED; } - char *res = chkpw_shadow(username, password, NULL); + char *res = chkpw(username, password, NULL); explicit_bzero(password, sizeof(password)); if(res == CHKPW_VALID) diff --git a/chkpw.c b/chkpw.c @@ -37,7 +37,7 @@ safe_strerror(char *desc, int errnum) } char * -chkpw_shadow(const char *username, const char *password, struct chkpw_extra *chkpw_extra) +chkpw(const char *username, const char *password, struct chkpw_extra *chkpw_extra) { (void)chkpw_extra; char *pw_hash = "";