aboutsummaryrefslogtreecommitdiffstats
path: root/x11/XFree86
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>2001-09-29 06:27:11 +0800
committerjmz <jmz@FreeBSD.org>2001-09-29 06:27:11 +0800
commit07c8f46fee268fb828d3ebbabb040c41c1f816e9 (patch)
tree86046d08e74840b39cbae940c7907a0494a3dc33 /x11/XFree86
parent559275395f09449a814905919cf344836022778e (diff)
downloadfreebsd-ports-gnome-07c8f46fee268fb828d3ebbabb040c41c1f816e9.tar.gz
freebsd-ports-gnome-07c8f46fee268fb828d3ebbabb040c41c1f816e9.tar.zst
freebsd-ports-gnome-07c8f46fee268fb828d3ebbabb040c41c1f816e9.zip
Fix to set environment login.conf
PR: ports/13614 Submitted by: fjoe
Diffstat (limited to 'x11/XFree86')
-rw-r--r--x11/XFree86/files/patch-xdm27
1 files changed, 27 insertions, 0 deletions
diff --git a/x11/XFree86/files/patch-xdm b/x11/XFree86/files/patch-xdm
new file mode 100644
index 000000000000..4fe894f64af2
--- /dev/null
+++ b/x11/XFree86/files/patch-xdm
@@ -0,0 +1,27 @@
+--- programs/xdm/session.c.orig Fri Sep 28 23:31:30 2001
++++ programs/xdm/session.c Fri Sep 28 23:33:03 2001
+@@ -525,6 +525,7 @@
+ int pid;
+ #ifdef HAS_SETUSERCONTEXT
+ struct passwd* pwd;
++ extern char **environ;
+ #endif
+
+ if (verify->argv) {
+@@ -602,6 +603,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)
+ {
+@@ -611,6 +614,7 @@
+ errno);
+ return(0);
+ }
++ verify->userEnviron = environ;
+ endpwent();
+ }
+ else