diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-07-22 15:58:06 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-07-22 15:58:06 +0000 |
commit | fe0ed89eda903447a1f59e052c9c23668f7170df (patch) | |
tree | 891ee294d47e64fbf21b126e679c1c27bc589042 /x11/wdm | |
parent | 59dc8c7b7a3e66be5a014bbd68341c33533c355e (diff) |
Notes
Diffstat (limited to 'x11/wdm')
-rw-r--r-- | x11/wdm/Makefile | 1 | ||||
-rw-r--r-- | x11/wdm/files/patch-src::wdm::session.c | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/x11/wdm/Makefile b/x11/wdm/Makefile index 9d6941796c7b..23d212d732d4 100644 --- a/x11/wdm/Makefile +++ b/x11/wdm/Makefile @@ -7,6 +7,7 @@ PORTNAME= wdm PORTVERSION= 1.25 +PORTREVISION= 1 CATEGORIES= x11 windowmaker MASTER_SITES= http://voins.program.ru/wdm/ \ http://www.de.freebsd.org/de/gif/bsd/ \ diff --git a/x11/wdm/files/patch-src::wdm::session.c b/x11/wdm/files/patch-src::wdm::session.c new file mode 100644 index 000000000000..884b5e7d664b --- /dev/null +++ b/x11/wdm/files/patch-src::wdm::session.c @@ -0,0 +1,27 @@ +--- src/wdm/session.c.orig Fri Jun 6 23:48:46 2003 ++++ src/wdm/session.c Tue Jul 22 20:32:23 2003 +@@ -534,6 +534,7 @@ + int pid; + #ifdef HAS_SETUSERCONTEXT + struct passwd* pwd; ++ extern char **environ; + #endif + #ifdef USE_PAM + pam_handle_t *pamh = thepamh(); +@@ -613,6 +614,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) + { +@@ -622,6 +625,7 @@ + errno); + return (0); + } ++ verify->userEnviron = environ; + endpwent(); + } + else |