diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-11-20 18:53:05 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-11-20 18:53:05 +0100 |
commit | f0793aed8c6bc2ca3032809e7bc744fc87835fd7 (patch) | |
tree | d56c23549c42d6791f90135684ae3caa8a8f3337 | |
parent | m (diff) | |
download | libpassphrase-f0793aed8c6bc2ca3032809e7bc744fc87835fd7.tar.gz libpassphrase-f0793aed8c6bc2ca3032809e7bc744fc87835fd7.tar.bz2 libpassphrase-f0793aed8c6bc2ca3032809e7bc744fc87835fd7.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | src/cerberus.h | 2 | ||||
-rw-r--r-- | src/pam.c | 2 |
3 files changed, 3 insertions, 2 deletions
@@ -56,6 +56,7 @@ bin/cerberus: $(OBJ) $(CC) $(LD_FLAGS) -o "$@" $^ +obj/cerberus.o: $(foreach H, $(SRC), src/$(H).h) obj/%.o: src/%.c src/%.h src/config.h @mkdir -p obj $(CC) $(CC_FLAGS) -o "$@" -c "$<" diff --git a/src/cerberus.h b/src/cerberus.h index 695d64c..38d9acb 100644 --- a/src/cerberus.h +++ b/src/cerberus.h @@ -39,7 +39,7 @@ #include "quit.h" #include "login.h" #include "security.h" -#include "parm.h" +#include "pam.h" #ifndef USE_TTY_GROUP @@ -72,6 +72,6 @@ void initialise_pam(char* remote, char* username) } do_pam(pam_set_item(handle, PAM_RHOST, remote ?: "localhost")); - do_pam(pam_set_item(handle, PAM_TTY, ttyname(STDIN_FILENO) ?: "(none)"); + do_pam(pam_set_item(handle, PAM_TTY, ttyname(STDIN_FILENO) ?: "(none)")); } |