summaryrefslogtreecommitdiff
path: root/x11/gdm/patches
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1999-11-11 11:57:20 +0000
committertron <tron@pkgsrc.org>1999-11-11 11:57:20 +0000
commit3f8dffe6a0102b3084411b027f6cdf37819f8e48 (patch)
treecc47771829ad239d20b5fe4ee958fc8b5163385c /x11/gdm/patches
parent3afd13022d859a3f0efbbb2b7773fb45648a1e23 (diff)
downloadpkgsrc-3f8dffe6a0102b3084411b027f6cdf37819f8e48.tar.gz
Fix bug in communication between "gdm" and "gdmlogin" process.
Diffstat (limited to 'x11/gdm/patches')
-rw-r--r--x11/gdm/patches/patch-af21
1 files changed, 16 insertions, 5 deletions
diff --git a/x11/gdm/patches/patch-af b/x11/gdm/patches/patch-af
index a60f2f08cf7..5f1ca562347 100644
--- a/x11/gdm/patches/patch-af
+++ b/x11/gdm/patches/patch-af
@@ -1,8 +1,19 @@
-$NetBSD: patch-af,v 1.3 1999/11/11 11:27:16 tron Exp $
+$NetBSD: patch-af,v 1.4 1999/11/11 11:57:20 tron Exp $
--- daemon/slave.c.orig Thu Sep 30 00:56:35 1999
-+++ daemon/slave.c Thu Nov 11 11:41:17 1999
-@@ -331,11 +332,11 @@
++++ daemon/slave.c Thu Nov 11 12:30:39 1999
+@@ -300,8 +300,8 @@
+ setegid (GdmGroupId);
+ seteuid (0);
+
+- session = gdm_slave_greeter_ctl (GDM_SESS, usrsess);
+- language = gdm_slave_greeter_ctl (GDM_LANG, usrlang);
++ session = gdm_slave_greeter_ctl (GDM_SESS, usrsess ? usrsess : "");
++ language = gdm_slave_greeter_ctl (GDM_LANG, usrlang ? usrlang : "");
+
+ if (strlen (gdm_slave_greeter_ctl (GDM_SSESS, "")))
+ savesess = TRUE;
+@@ -331,11 +331,11 @@
setenv ("DISPLAY", d->name, TRUE);
setenv ("LOGNAME", login, TRUE);
setenv ("USER", login, TRUE);
@@ -16,7 +27,7 @@ $NetBSD: patch-af,v 1.3 1999/11/11 11:27:16 tron Exp $
/* Special PATH for root */
if(pwent->pw_uid == 0)
-@@ -385,6 +386,9 @@
+@@ -385,6 +385,9 @@
if (setgid (pwent->pw_gid) < 0)
gdm_remanage (_("gdm_slave_session_start: Could not setgid %d. Aborting."), pwent->pw_gid);
@@ -26,7 +37,7 @@ $NetBSD: patch-af,v 1.3 1999/11/11 11:27:16 tron Exp $
if (initgroups (login, pwent->pw_gid) < 0)
gdm_remanage (_("gdm_slave_session_start: initgroups() failed for %s. Aborting."), login);
-@@ -423,7 +427,7 @@
+@@ -423,7 +426,7 @@
/* Restore sigmask inherited from init */
sigprocmask (SIG_SETMASK, &sysmask, NULL);