Upgrade to the current upstream version.
This commit is contained in:
parent
dc9de6ea2a
commit
5b4afe216d
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
xinit-1.0.7.tar.bz2
|
xinit-1.0.7.tar.bz2
|
||||||
|
/xinit-1.3.1.tar.bz2
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
224c36057e4416205d4e421af01a2f15 xinit-1.0.9.tar.bz2
|
ee234056d8a3dbf37b61b4bcb35b88e4 xinit-1.3.1.tar.bz2
|
||||||
|
@ -1,14 +1,27 @@
|
|||||||
diff -up xinit-1.0.9/xinit.c.client-session xinit-1.0.9/xinit.c
|
Index: xinit-1.3.1/xinit.c
|
||||||
--- xinit-1.0.9/xinit.c.client-session 2008-05-21 14:09:16.000000000 -0400
|
===================================================================
|
||||||
+++ xinit-1.0.9/xinit.c 2008-08-25 09:57:56.000000000 -0400
|
--- xinit-1.3.1.orig/xinit.c
|
||||||
@@ -727,11 +727,21 @@ startClient(char *client[])
|
+++ xinit-1.3.1/xinit.c
|
||||||
|
@@ -91,6 +91,8 @@ char xserverrcbuf[256];
|
||||||
|
|
||||||
|
#define TRUE 1
|
||||||
|
#define FALSE 0
|
||||||
|
+#define OK_EXIT 0
|
||||||
|
+#define ERR_EXIT 1
|
||||||
|
|
||||||
|
static char *default_server = "X";
|
||||||
|
static char *default_display = ":0"; /* choose most efficient */
|
||||||
|
@@ -561,6 +563,7 @@ startClient(char *client[])
|
||||||
{
|
{
|
||||||
setWindowPath();
|
clientpid = fork();
|
||||||
if ((clientpid = vfork()) == 0) {
|
if (clientpid == 0) {
|
||||||
+ int fd;
|
+ int fd;
|
||||||
if (setuid(getuid()) == -1) {
|
set_environment();
|
||||||
Error("cannot change uid: %s\n", strerror(errno));
|
setWindowPath();
|
||||||
_exit(ERR_EXIT);
|
|
||||||
|
@@ -568,7 +571,16 @@ startClient(char *client[])
|
||||||
|
Error("cannot change uid");
|
||||||
|
_exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
- setpgid(0, getpid());
|
- setpgid(0, getpid());
|
||||||
+ fd = open ("/dev/null", O_RDONLY);
|
+ fd = open ("/dev/null", O_RDONLY);
|
||||||
@ -21,6 +34,6 @@ diff -up xinit-1.0.9/xinit.c.client-session xinit-1.0.9/xinit.c
|
|||||||
+ dup2 (fd, STDIN_FILENO);
|
+ dup2 (fd, STDIN_FILENO);
|
||||||
+ close (fd);
|
+ close (fd);
|
||||||
+ setsid();
|
+ setsid();
|
||||||
environ = newenviron;
|
Execute(client);
|
||||||
#ifdef __UNIXOS2__
|
Error("Unable to run program \"%s\"", client[0]);
|
||||||
#undef environ
|
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
diff -up xinit-1.0.7/startx.cpp.jx xinit-1.0.7/startx.cpp
|
|
||||||
--- xinit-1.0.7/startx.cpp.jx 2007-09-16 17:24:48.000000000 -0400
|
|
||||||
+++ xinit-1.0.7/startx.cpp 2008-02-11 14:05:03.000000000 -0500
|
|
||||||
@@ -13,6 +13,9 @@ XCOMM Site administrators are STRONGLY u
|
|
||||||
XCOMM
|
|
||||||
XCOMM $XFree86: xc/programs/xinit/startx.cpp,v 3.16tsi Exp $
|
|
||||||
|
|
||||||
+unset DBUS_SESSION_BUS_ADDRESS
|
|
||||||
+unset SESSION_MANAGER
|
|
||||||
+
|
|
||||||
#if defined(__SCO__) || defined(__UNIXWARE__)
|
|
||||||
|
|
||||||
XCOMM Check for /usr/bin/X11 and BINDIR in the path, if not add them.
|
|
@ -1,9 +1,10 @@
|
|||||||
diff -up xinit-1.0.9/startx.cpp.jx xinit-1.0.9/startx.cpp
|
Index: xinit-1.3.1/startx.cpp
|
||||||
--- xinit-1.0.9/startx.cpp.jx 2008-05-21 14:29:51.000000000 -0400
|
===================================================================
|
||||||
+++ xinit-1.0.9/startx.cpp 2009-05-08 13:46:44.000000000 -0400
|
--- xinit-1.3.1.orig/startx.cpp
|
||||||
@@ -13,6 +13,7 @@ XCOMM Site administrators are STRONGLY u
|
+++ xinit-1.3.1/startx.cpp
|
||||||
|
@@ -11,6 +11,7 @@ XCOMM
|
||||||
|
XCOMM Site administrators are STRONGLY urged to write nicer versions.
|
||||||
XCOMM
|
XCOMM
|
||||||
XCOMM $XFree86: xc/programs/xinit/startx.cpp,v 3.16tsi Exp $
|
|
||||||
|
|
||||||
+unset XDG_SESSION_COOKIE
|
+unset XDG_SESSION_COOKIE
|
||||||
unset DBUS_SESSION_BUS_ADDRESS
|
unset DBUS_SESSION_BUS_ADDRESS
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
Summary: X.Org X11 X Window System xinit startup scripts
|
Summary: X.Org X11 X Window System xinit startup scripts
|
||||||
Name: xorg-x11-%{pkgname}
|
Name: xorg-x11-%{pkgname}
|
||||||
Version: 1.0.9
|
Version: 1.3.1
|
||||||
Release: 21%{?dist}
|
Release: 1%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: User Interface/X
|
Group: User Interface/X
|
||||||
URL: http://www.x.org
|
URL: http://www.x.org
|
||||||
@ -123,6 +123,9 @@ install -p -m644 -D %{SOURCE18} $RPM_BUILD_ROOT%{_datadir}/xsessions/xinit-compa
|
|||||||
%{_datadir}/xsessions/xinit-compat.desktop
|
%{_datadir}/xsessions/xinit-compat.desktop
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 25 2011 Matěj Cepl <mcepl@redhat.com> - 1.3.1-1
|
||||||
|
- New upstream version. Patches updated.
|
||||||
|
|
||||||
* Sat May 28 2011 Matěj Cepl <mcepl@redhat.com> - 1.0.9-21
|
* Sat May 28 2011 Matěj Cepl <mcepl@redhat.com> - 1.0.9-21
|
||||||
- xinitrc-common sources ~/.profile (Bug 551508)
|
- xinitrc-common sources ~/.profile (Bug 551508)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user