Bugzilla – Attachment 184 Details for
Bug 453
[PATCH] The SHELL env variable is set incorrectly, when shell is overridden from login.conf.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The patch got mangled in the original bug report, here is the correct version.
openssh-sshd-fix (text/plain), 767 bytes, created by
Semen A. Ustimenko
on 2002-12-09 22:50:54 AEDT
(
hide
)
Description:
The patch got mangled in the original bug report, here is the correct version.
Filename:
MIME Type:
Creator:
Semen A. Ustimenko
Created:
2002-12-09 22:50:54 AEDT
Size:
767 bytes
patch
obsolete
>--- ./session.c.orig2 Sat Dec 7 07:48:46 2002 >+++ ./session.c Sat Dec 7 07:57:16 2002 >@@ -1325,11 +1325,19 @@ > * legal, and means /bin/sh. > */ > shell = (pw->pw_shell[0] == '\0') ? _PATH_BSHELL : pw->pw_shell; >+ >+ /* Set up the environment for child */ >+ env = do_setup_env(s, shell); >+ >+ /* >+ * The shell specifed in login class overrides the shell in passwd, >+ * but, according to the login.conf(5), the SHELL env variable must >+ * contain the value from passwd, so we do this *after* setting up >+ * child's environment. >+ */ > #ifdef HAVE_LOGIN_CAP > shell = login_getcapstr(lc, "shell", (char *)shell, (char *)shell); > #endif >- >- env = do_setup_env(s, shell); > > /* we have to stash the hostname before we close our socket. */ > if (options.use_login)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 453
: 184