diff options
Diffstat (limited to 'Linux-PAM/libpamc/test')
-rw-r--r-- | Linux-PAM/libpamc/test/modules/pam_secret.c | 3 | ||||
-rw-r--r-- | Linux-PAM/libpamc/test/regress/Makefile | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Linux-PAM/libpamc/test/modules/pam_secret.c b/Linux-PAM/libpamc/test/modules/pam_secret.c index 557f5959..95f26014 100644 --- a/Linux-PAM/libpamc/test/modules/pam_secret.c +++ b/Linux-PAM/libpamc/test/modules/pam_secret.c @@ -1,5 +1,5 @@ /* - * $Id: pam_secret.c,v 1.1.1.1 2001/04/29 04:17:14 hartmans Exp $ + * $Id: pam_secret.c,v 1.3 2004/09/14 14:22:39 kukuk Exp $ * * Copyright (c) 1999 Andrew G. Morgan <morgan@linux.kernel.org> */ @@ -206,6 +206,7 @@ char *identify_secret(char *identity, const char *user) pwd = getpwnam(user); if ((pwd == NULL) || (pwd->pw_dir == NULL)) { D(("user [%s] is not known", user)); + return NULL; } length_id = strlen(pwd->pw_dir) + sizeof(SECRET_FILE_FORMAT); diff --git a/Linux-PAM/libpamc/test/regress/Makefile b/Linux-PAM/libpamc/test/regress/Makefile index ff63e5f0..cba474f9 100644 --- a/Linux-PAM/libpamc/test/regress/Makefile +++ b/Linux-PAM/libpamc/test/regress/Makefile @@ -1,7 +1,7 @@ CFLAGS = -g -I ../../include test.libpamc: test.libpamc.o - $(CC) -o $@ $< -L ../.. -lpamc + $(CC) -o $@ $(CFLAGS) $< -L ../.. -lpamc clean: rm -f test.libpamc test.libpamc.o |