FreeBSD Bugzilla – Attachment 78506 Details for
Bug 112932
[patch] x11/xdm 1.1.4_1 does not inherit environment from login.conf
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 792 bytes, created by
Neil Hoggarth
on 2007-05-24 11:40:09 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Neil Hoggarth
Created:
2007-05-24 11:40:09 UTC
Size:
792 bytes
patch
obsolete
>--- session.c.orig Fri Feb 2 01:00:51 2007 >+++ session.c Thu May 24 07:42:53 2007 >@@ -543,6 +543,7 @@ > pid_t pid; > #ifdef HAS_SETUSERCONTEXT > struct passwd* pwd; >+ extern char **environ; > #endif > #ifdef USE_PAM > pam_handle_t *pamh = thepamh (); >@@ -657,6 +658,8 @@ > * Set the user's credentials: uid, gid, groups, > * environment variables, resource limits, and umask. > */ >+ /* destroy user environment before calling setusercontext */ >+ environ = verify->userEnviron; > pwd = getpwnam(name); > if (pwd) { > if (setusercontext(NULL, pwd, pwd->pw_uid, LOGIN_SETALL) < 0) { >@@ -664,6 +667,7 @@ > errno); > return (0); > } >+ verify->userEnviron = environ; > endpwent(); > } else { > LogError ("getpwnam for \"%s\" failed, errno=%d\n", name, errno);
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 112932
: 78506