diff options
author | Darren Tucker <dtucker@zip.com.au> | 2016-10-14 19:34:46 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2016-10-14 19:34:46 +0200 |
commit | e0259a82ddd950cfb109ddee86fcebbc09c6bd04 (patch) | |
tree | 0d5aece2736c75d9afd0a0c855a243d829250409 /auth-pam.c | |
parent | unbreak principals-command test (diff) | |
download | openssh-e0259a82ddd950cfb109ddee86fcebbc09c6bd04.tar.xz openssh-e0259a82ddd950cfb109ddee86fcebbc09c6bd04.zip |
Remove do_pam_set_tty which is dead code.
The callers of do_pam_set_tty were removed in 2008, so this is now dead
code. bz#2604, pointed out by jjelen at redhat.com.
Diffstat (limited to 'auth-pam.c')
-rw-r--r-- | auth-pam.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/auth-pam.c b/auth-pam.c index 7a14c89f4..7d8b2926b 100644 --- a/auth-pam.c +++ b/auth-pam.c @@ -951,18 +951,6 @@ do_pam_account(void) } void -do_pam_set_tty(const char *tty) -{ - if (tty != NULL) { - debug("PAM: setting PAM_TTY to \"%s\"", tty); - sshpam_err = pam_set_item(sshpam_handle, PAM_TTY, tty); - if (sshpam_err != PAM_SUCCESS) - fatal("PAM: failed to set PAM_TTY: %s", - pam_strerror(sshpam_handle, sshpam_err)); - } -} - -void do_pam_setcred(int init) { sshpam_err = pam_set_item(sshpam_handle, PAM_CONV, |