aboutsummaryrefslogtreecommitdiffstats
path: root/src/pam.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pam.c')
-rw-r--r--src/pam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pam.c b/src/pam.c
index d876d9c..dcf9598 100644
--- a/src/pam.c
+++ b/src/pam.c
@@ -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)"));
}