rpms/xorg-x11-xinit/FC-6 xinit-1.0.2-client-session.patch, NONE, 1.1 xorg-x11-xinit.spec, 1.32, 1.33
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Fri Nov 10 15:46:59 UTC 2006
Author: rstrode
Update of /cvs/dist/rpms/xorg-x11-xinit/FC-6
In directory cvs.devel.redhat.com:/tmp/cvs-serv18268
Modified Files:
xorg-x11-xinit.spec
Added Files:
xinit-1.0.2-client-session.patch
Log Message:
- start client in its own session with no controlling tty
(bug 214649)
xinit-1.0.2-client-session.patch:
xinit.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletion(-)
--- NEW FILE xinit-1.0.2-client-session.patch ---
--- xinit-1.0.2/xinit.c.client-session 2006-11-10 00:24:25.000000000 -0500
+++ xinit-1.0.2/xinit.c 2006-11-10 00:30:42.000000000 -0500
@@ -692,11 +692,21 @@
startClient(char *client[])
{
if ((clientpid = vfork()) == 0) {
+ int fd;
if (setuid(getuid()) == -1) {
Error("cannot change uid: %s\n", strerror(errno));
_exit(ERR_EXIT);
}
- setpgrp(0, getpid());
+ fd = open ("/dev/null", O_RDONLY);
+
+ if (fd < 0) {
+ Error("cannot open /dev/null: %s\n", strerror(errno));
+ _exit(ERR_EXIT);
+ }
+ close (STDIN_FILENO);
+ dup2 (fd, STDIN_FILENO);
+ close (fd);
+ setsid();
environ = newenviron;
#ifdef __UNIXOS2__
#undef environ
Index: xorg-x11-xinit.spec
===================================================================
RCS file: /cvs/dist/rpms/xorg-x11-xinit/FC-6/xorg-x11-xinit.spec,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- xorg-x11-xinit.spec 1 Oct 2006 21:19:29 -0000 1.32
+++ xorg-x11-xinit.spec 10 Nov 2006 15:46:57 -0000 1.33
@@ -3,7 +3,7 @@
Summary: X.Org X11 X Window System xinit startup scripts
Name: xorg-x11-%{pkgname}
Version: 1.0.2
-Release: 12%{?dist}
+Release: 14%{?dist}
License: MIT/X11
Group: User Interface/X
URL: http://www.x.org
@@ -100,6 +100,13 @@
%{_mandir}/man1/xinit.1x*
%changelog
+* Fri Nov 10 2006 Ray Strode <rstrode at redhat.com> - 1.0.2-14
+- start client in its own session with no controlling tty
+ (bug 214649)
+
+* Sun Oct 01 2006 Jesse Keating <jkeating at redhat.com> - 1.0.2-13
+- rebuilt for unwind info generation, broken in gcc-4.1.1-21
+
* Sun Oct 01 2006 Jesse Keating <jkeating at redhat.com> - 1.0.2-12
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
More information about the fedora-cvs-commits
mailing list