summaryrefslogtreecommitdiff
path: root/x11/gdm
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-12-31 15:39:27 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-12-31 15:39:27 +0000
commit4e91bb5115c2e8f6c5c4d9b88b44326adbf03255 (patch)
tree28c11219a75cc4f8979e18317cd98c0c9e1a9040 /x11/gdm
parentAdd xmms-sndfile: (diff)
Set correct group for users' session.
PR: 33372 Submitted by: Joe Marcus Clarke <marcus@marcuscom.com>
Notes
Notes: svn path=/head/; revision=52446
Diffstat (limited to 'x11/gdm')
-rw-r--r--x11/gdm/Makefile1
-rw-r--r--x11/gdm/files/patch-daemon::slave.c20
2 files changed, 21 insertions, 0 deletions
diff --git a/x11/gdm/Makefile b/x11/gdm/Makefile
index ac16fc0237bd..cbaf368b0d02 100644
--- a/x11/gdm/Makefile
+++ b/x11/gdm/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gdm
PORTVERSION= 2.2.5.3
+PORTREVISION= 1
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= stable/sources/gdm
diff --git a/x11/gdm/files/patch-daemon::slave.c b/x11/gdm/files/patch-daemon::slave.c
new file mode 100644
index 000000000000..bb3251603058
--- /dev/null
+++ b/x11/gdm/files/patch-daemon::slave.c
@@ -0,0 +1,20 @@
+
+$FreeBSD$
+
+--- daemon/slave.c.orig Fri Dec 7 07:56:17 2001
++++ daemon/slave.c Mon Dec 31 17:30:30 2001
+@@ -1860,7 +1860,13 @@
+ setpgid (0, 0);
+
+ umask (022);
+-
++
++ /* setup the user's correct group */
++ if (setgid (pwent->pw_gid) < 0)
++ gdm_child_exit (DISPLAY_REMANAGE, _("gdm_slave_session_start: Could not setgid %d. Aborting."), pwent->pw_gid);
++ if (initgroups (login, pwent->pw_gid) < 0)
++ gdm_child_exit (DISPLAY_REMANAGE, _("gdm_slave_session_start: initgroups() failed for %s. Aborting."), login);
++
+ /* setup the verify env vars */
+ if ( ! gdm_verify_setup_env (d))
+ gdm_child_exit (DISPLAY_REMANAGE,