svn commit: r421126 - in branches/2016Q3/x11/xdm: . files
Kurt Jaeger
pi at FreeBSD.org
Tue Aug 30 17:55:05 UTC 2016
Author: pi
Date: Tue Aug 30 17:55:03 2016
New Revision: 421126
URL: https://svnweb.freebsd.org/changeset/ports/421126
Log:
x11/xdm: Use MIT-MAGIC-COOKIE-1 by default
MFH: r420921 r420926 r420929
- It is more useful that way
- pet portlint for the patches
PR: 211624
Submitted by: Tobias Kortkamp <t at tobik.me>
Reported by: ak
Approved by: ports-secteam (junovitch)
Added:
branches/2016Q3/x11/xdm/files/patch-config_xdm-config.cpp
- copied, changed from r420921, head/x11/xdm/files/patch-config_xdm-config.cpp
Modified:
branches/2016Q3/x11/xdm/Makefile
branches/2016Q3/x11/xdm/files/patch-config-Makefile.in
branches/2016Q3/x11/xdm/files/patch-config-Xresources.cpp
branches/2016Q3/x11/xdm/files/patch-greeter-greet.c
branches/2016Q3/x11/xdm/files/patch-xdm_session.c
Directory Properties:
branches/2016Q3/ (props changed)
Modified: branches/2016Q3/x11/xdm/Makefile
==============================================================================
--- branches/2016Q3/x11/xdm/Makefile Tue Aug 30 17:25:43 2016 (r421125)
+++ branches/2016Q3/x11/xdm/Makefile Tue Aug 30 17:55:03 2016 (r421126)
@@ -2,7 +2,7 @@
PORTNAME= xdm
PORTVERSION= 1.1.11
-PORTREVISION= 3
+PORTREVISION= 6
CATEGORIES= x11
MAINTAINER= x11 at FreeBSD.org
Modified: branches/2016Q3/x11/xdm/files/patch-config-Makefile.in
==============================================================================
--- branches/2016Q3/x11/xdm/files/patch-config-Makefile.in Tue Aug 30 17:25:43 2016 (r421125)
+++ branches/2016Q3/x11/xdm/files/patch-config-Makefile.in Tue Aug 30 17:55:03 2016 (r421126)
@@ -1,6 +1,6 @@
---- config/Makefile.in.orig 2012-09-27 10:37:59.000000000 +0200
-+++ config/Makefile.in 2012-09-27 10:38:41.000000000 +0200
-@@ -296,7 +296,7 @@
+--- config/Makefile.in.orig 2011-09-25 07:42:16 UTC
++++ config/Makefile.in
+@@ -296,7 +296,7 @@ WCHAR32_FLAGS = -DWCHAR32=@WCHAR32@
# output lines with trailing backslashes.
# Allow XHASH to always be substituted, even in cases where XCOMM isn't.
CPP_SED_MAGIC = $(SED) -e '/^\# *[0-9][0-9]* *.*$$/d' \
Modified: branches/2016Q3/x11/xdm/files/patch-config-Xresources.cpp
==============================================================================
--- branches/2016Q3/x11/xdm/files/patch-config-Xresources.cpp Tue Aug 30 17:25:43 2016 (r421125)
+++ branches/2016Q3/x11/xdm/files/patch-config-Xresources.cpp Tue Aug 30 17:55:03 2016 (r421126)
@@ -1,6 +1,6 @@
---- config/Xresources.cpp.orig 2012-09-27 10:41:28.000000000 +0200
-+++ config/Xresources.cpp 2012-09-27 10:41:56.000000000 +0200
-@@ -60,9 +60,9 @@
+--- config/Xresources.cpp.orig 2011-09-25 07:35:47 UTC
++++ config/Xresources.cpp
+@@ -60,9 +60,9 @@ xlogin*hiColor: black
XHASHendif
#ifdef XPM
XHASHif PLANES >= 8
Copied and modified: branches/2016Q3/x11/xdm/files/patch-config_xdm-config.cpp (from r420921, head/x11/xdm/files/patch-config_xdm-config.cpp)
==============================================================================
--- head/x11/xdm/files/patch-config_xdm-config.cpp Fri Aug 26 13:57:13 2016 (r420921, copy source)
+++ branches/2016Q3/x11/xdm/files/patch-config_xdm-config.cpp Tue Aug 30 17:55:03 2016 (r421126)
@@ -1,39 +1,9 @@
--- config/xdm-config.cpp.orig 2011-09-25 07:35:47 UTC
+++ config/xdm-config.cpp
-@@ -12,25 +12,26 @@
- DisplayManager.authDir: XDMXAUTHDIR
- DisplayManager.errorLogFile: XDMLOGDIR/xdm.log
- DisplayManager.pidFile: XDMPIDDIR/xdm.pid
--DisplayManager.keyFile: XDMCONFIGDIR/xdm-keys
--DisplayManager.servers: XDMCONFIGDIR/Xservers
--DisplayManager.accessFile: XDMCONFIGDIR/Xaccess
--DisplayManager*resources: XDMCONFIGDIR/Xresources
--DisplayManager.willing: SU nobody -s /bin/sh -c XDMSCRIPTDIR/Xwilling
-+DisplayManager.keyFile: /usr/local/lib/X11/xdm/xdm-keys
-+DisplayManager.servers: /usr/local/lib/X11/xdm/Xservers
-+DisplayManager.accessFile: /usr/local/lib/X11/xdm/Xaccess
-+DisplayManager*resources: /usr/local/lib/X11/xdm/Xresources
-+DisplayManager.willing: SU nobody -s /bin/sh -c /usr/local/lib/X11/xdm/Xwilling
- ! All displays should use authorization, but we cannot be sure
- ! X terminals may not be configured that way, so they will require
- ! individual resource settings.
- DisplayManager*authorize: true
- !
- DisplayManager*chooser: CHOOSERPATH
--DisplayManager*startup: XDMSCRIPTDIR/Xstartup
--DisplayManager*session: XDMSCRIPTDIR/Xsession
--DisplayManager*reset: XDMSCRIPTDIR/Xreset
-+DisplayManager*startup: /usr/local/lib/X11/xdm/Xstartup
-+DisplayManager*session: /usr/local/lib/X11/xdm/Xsession
-+DisplayManager*reset: /usr/local/lib/X11/xdm/Xreset
- DisplayManager*authComplain: true
- ! The following three resources set up display :0 as the console.
--DisplayManager._0.setup: XDMSCRIPTDIR/Xsetup_0
--DisplayManager._0.startup: XDMSCRIPTDIR/GiveConsole
--DisplayManager._0.reset: XDMSCRIPTDIR/TakeConsole
-+DisplayManager._0.setup: /usr/local/lib/X11/xdm/Xsetup_0
-+DisplayManager._0.startup: /usr/local/lib/X11/xdm/GiveConsole
-+DisplayManager._0.reset: /usr/local/lib/X11/xdm/TakeConsole
+@@ -31,6 +31,7 @@ DisplayManager*authComplain: true
+ DisplayManager._0.setup: XDMSCRIPTDIR/Xsetup_0
+ DisplayManager._0.startup: XDMSCRIPTDIR/GiveConsole
+ DisplayManager._0.reset: XDMSCRIPTDIR/TakeConsole
+DisplayManager.*.authName: MIT-MAGIC-COOKIE-1
#ifdef XPM
DisplayManager*loginmoveInterval: 10
Modified: branches/2016Q3/x11/xdm/files/patch-greeter-greet.c
==============================================================================
--- branches/2016Q3/x11/xdm/files/patch-greeter-greet.c Tue Aug 30 17:25:43 2016 (r421125)
+++ branches/2016Q3/x11/xdm/files/patch-greeter-greet.c Tue Aug 30 17:55:03 2016 (r421126)
@@ -1,6 +1,6 @@
---- greeter/greet.c.orig Sat Feb 3 01:25:25 2007
-+++ greeter/greet.c Wed Apr 4 14:03:31 2007
-@@ -612,6 +617,7 @@ greet_user_rtn GreetUser(
+--- greeter/greet.c.orig 2011-09-25 07:35:47 UTC
++++ greeter/greet.c
+@@ -639,6 +639,7 @@ greet_user_rtn GreetUser(
}
DeleteXloginResources (d, *dpy);
CloseGreet (d);
@@ -8,12 +8,3 @@
Debug ("Greet loop finished\n");
/*
* Run system-wide initialization file
-@@ -697,6 +704,8 @@ static int pamconv(int num_msg,
- m = *msg;
- r = *response;
-
-+ if (login == NULL) goto pam_error;
-+
- for (i = 0; i < num_msg; i++ , m++ , r++) {
- char *username;
- int promptId = 0;
Modified: branches/2016Q3/x11/xdm/files/patch-xdm_session.c
==============================================================================
--- branches/2016Q3/x11/xdm/files/patch-xdm_session.c Tue Aug 30 17:25:43 2016 (r421125)
+++ branches/2016Q3/x11/xdm/files/patch-xdm_session.c Tue Aug 30 17:55:03 2016 (r421126)
@@ -1,14 +1,14 @@
---- xdm/session.c.orig Sun Jun 3 22:49:51 2007
-+++ xdm/session.c Sun Jun 3 22:56:06 2007
-@@ -543,6 +543,7 @@
+--- xdm/session.c.orig 2011-09-25 07:35:47 UTC
++++ xdm/session.c
+@@ -575,6 +575,7 @@ StartClient (
pid_t pid;
- #ifdef HAS_SETUSERCONTEXT
+ #ifdef HAVE_SETUSERCONTEXT
struct passwd* pwd;
+ extern char **environ;
#endif
#ifdef USE_PAM
pam_handle_t *pamh = thepamh ();
-@@ -657,6 +660,8 @@
+@@ -695,6 +696,8 @@ StartClient (
* Set the user's credentials: uid, gid, groups,
* environment variables, resource limits, and umask.
*/
@@ -17,11 +17,11 @@
pwd = getpwnam(name);
if (pwd) {
if (setusercontext(NULL, pwd, pwd->pw_uid, LOGIN_SETALL) < 0) {
-@@ -664,6 +669,7 @@
- errno);
+@@ -702,6 +705,7 @@ StartClient (
+ name, _SysErrorMsg (errno));
return (0);
}
+ verify->userEnviron = environ;
endpwent();
} else {
- LogError ("getpwnam for \"%s\" failed, errno=%d\n", name, errno);
+ LogError ("getpwnam for \"%s\" failed: %s\n",
More information about the svn-ports-all
mailing list