View | Details | Raw Unified | Return to bug 687
Collapse All | Expand All

(-)auth-pam.c (-2 / +2 lines)
Lines 328-335 sshpam_init(const char *user) Link Here
328
         * sshd doesn't set the tty until too late in the auth process and 
328
         * sshd doesn't set the tty until too late in the auth process and 
329
	 * may not even set one (for tty-less connections)
329
	 * may not even set one (for tty-less connections)
330
         */
330
         */
331
	debug("PAM: setting PAM_TTY to \"ssh\"");
331
	debug("PAM: setting PAM_TTY to \"/dev/ssh\"");
332
	sshpam_err = pam_set_item(sshpam_handle, PAM_TTY, "ssh");
332
	sshpam_err = pam_set_item(sshpam_handle, PAM_TTY, "/dev/ssh");
333
	if (sshpam_err != PAM_SUCCESS) {
333
	if (sshpam_err != PAM_SUCCESS) {
334
		pam_end(sshpam_handle, sshpam_err);
334
		pam_end(sshpam_handle, sshpam_err);
335
		sshpam_handle = NULL;
335
		sshpam_handle = NULL;

Return to bug 687