]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Remove do_pam_set_tty which is dead code.
authorDarren Tucker <dtucker@zip.com.au>
Fri, 14 Oct 2016 17:34:46 +0000 (04:34 +1100)
committerDarren Tucker <dtucker@zip.com.au>
Fri, 14 Oct 2016 17:34:46 +0000 (04:34 +1100)
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.

auth-pam.c
auth-pam.h

index 7a14c89f4c8f7b4e429e9ff14b74aa22613744f1..7d8b2926b571f91ee3751b673b6808872818ebb3 100644 (file)
@@ -950,18 +950,6 @@ do_pam_account(void)
        return (sshpam_account_status);
 }
 
-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)
 {
index f9a3fbf430ba0af0229f032a5b70d95760e711a1..c47b442e48a5f91102468991dc797c10a7526f2d 100644 (file)
@@ -29,7 +29,6 @@ void start_pam(Authctxt *);
 void finish_pam(void);
 u_int do_pam_account(void);
 void do_pam_session(void);
-void do_pam_set_tty(const char *);
 void do_pam_setcred(int );
 void do_pam_chauthtok(void);
 int do_pam_putenv(char *, char *);