diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2004-06-17 01:53:09 +0000 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2004-06-17 01:53:09 +0000 |
commit | 1f5faf0b39cc8c737ed7d62ee538bf584a1d3394 (patch) | |
tree | fa3a036a1f465b06af79f2b04bca8bfbb129e2da /x11/xorg-clients | |
parent | c414bbd45c1bb57b93ed4dc1558d7fefa527fb58 (diff) | |
download | ports-1f5faf0b39cc8c737ed7d62ee538bf584a1d3394.tar.gz ports-1f5faf0b39cc8c737ed7d62ee538bf584a1d3394.zip |
Notes
Diffstat (limited to 'x11/xorg-clients')
-rw-r--r-- | x11/xorg-clients/Makefile | 1 | ||||
-rw-r--r-- | x11/xorg-clients/files/patch-xdm_session.c | 30 |
2 files changed, 19 insertions, 12 deletions
diff --git a/x11/xorg-clients/Makefile b/x11/xorg-clients/Makefile index 7990de299b6f..6792c1cc054f 100644 --- a/x11/xorg-clients/Makefile +++ b/x11/xorg-clients/Makefile @@ -18,7 +18,6 @@ COMMENT= X client programs and related files from X.Org LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \ expat.5:${PORTSDIR}/textproc/expat2 \ - Xcursor.1:${PORTSDIR}/x11/XFree86-4-libraries \ png.5:${PORTSDIR}/graphics/png \ Xft.2:${PORTSDIR}/x11-fonts/libXft diff --git a/x11/xorg-clients/files/patch-xdm_session.c b/x11/xorg-clients/files/patch-xdm_session.c index c7c2d43dce28..f4cff5c5a4ed 100644 --- a/x11/xorg-clients/files/patch-xdm_session.c +++ b/x11/xorg-clients/files/patch-xdm_session.c @@ -1,27 +1,35 @@ ---- programs/xdm/session.c.orig Wed May 30 00:56:22 2001 -+++ programs/xdm/session.c Fri Sep 28 23:25:16 2001 -@@ -541,6 +541,7 @@ +--- programs/xdm/session.c.orig Thu Mar 4 09:48:55 2004 ++++ programs/xdm/session.c Wed Jun 16 16:59:46 2004 +@@ -55,7 +55,6 @@ + #ifdef SECURE_RPC + # include <rpc/rpc.h> + # include <rpc/key_prot.h> +-extern int key_setnet(struct key_netstarg *arg); + #endif + #ifdef K5AUTH + # include <krb5/krb5.h> +@@ -529,6 +528,7 @@ int pid; #ifdef HAS_SETUSERCONTEXT struct passwd* pwd; + extern char **environ; #endif - #ifdef USE_PAM - pam_handle_t *pamh = thepamh(); -@@ -623,6 +624,8 @@ + #ifdef USE_PAM + pam_handle_t *pamh = thepamh (); +@@ -610,6 +610,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) - { -@@ -632,6 +635,7 @@ + if (pwd) { + if (setusercontext(NULL, pwd, pwd->pw_uid, LOGIN_SETALL) < 0) { +@@ -617,6 +619,7 @@ errno); return (0); } + verify->userEnviron = environ; endpwent(); - } - else + } else { + LogError ("getpwnam for \"%s\" failed, errno=%d\n", name, errno); |