jwrdegoede pushed to xorg-x11-xinit (f22). "Only set XORG_RUN_AS_USER_OK when no vt is specified (#1203780)"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon May 11 14:21:16 UTC 2015


From 8f68bf4936a04fb7dccd18c5fa02f189c911bde3 Mon Sep 17 00:00:00 2001
From: Hans de Goede <hdegoede at redhat.com>
Date: Thu, 30 Apr 2015 14:22:11 +0200
Subject: Only set XORG_RUN_AS_USER_OK when no vt is specified (#1203780)


diff --git a/xinit-1.3.4-set-XORG_RUN_AS_USER_OK.patch b/xinit-1.3.4-set-XORG_RUN_AS_USER_OK.patch
index 25ac9f7..cf7b703 100644
--- a/xinit-1.3.4-set-XORG_RUN_AS_USER_OK.patch
+++ b/xinit-1.3.4-set-XORG_RUN_AS_USER_OK.patch
@@ -1,12 +1,15 @@
 diff -up xinit-1.3.4/startx.cpp~ xinit-1.3.4/startx.cpp
 --- xinit-1.3.4/startx.cpp~	2015-03-18 12:13:11.000000000 +0100
 +++ xinit-1.3.4/startx.cpp	2015-03-18 12:49:49.445624223 +0100
-@@ -199,6 +199,8 @@ if [ x"$server" = x ]; then
-     if expr match "$tty" '^/dev/tty[0-9]\+$' > /dev/null; then
-         tty_num=$(echo "$tty" | grep -oE '[0-9]+$')
-         vtarg="vt$tty_num -keeptty"
-+        XCOMM Fedora specific mod to make X run as non root
-+        export XORG_RUN_AS_USER_OK=1
+@@ -140,8 +140,10 @@
+         have_vtarg="yes"
      fi
- #endif
+ done
+-if [ "$have_vtarg" = "no" ]; then
++if [ "$have_vtarg" = "no" -a x"$vtarg" != x ]; then
+     serverargs="$serverargs $vtarg"
++    XCOMM Fedora specific mod to make X run as non root
++    export XORG_RUN_AS_USER_OK=1
+ fi
  
+ serverargs="$serverargs $listenarg"
diff --git a/xorg-x11-xinit.spec b/xorg-x11-xinit.spec
index daf6acd..515e630 100644
--- a/xorg-x11-xinit.spec
+++ b/xorg-x11-xinit.spec
@@ -3,7 +3,7 @@
 Summary:    X.Org X11 X Window System xinit startup scripts
 Name:       xorg-x11-%{pkgname}
 Version:    1.3.4
-Release:    7%{?dist}
+Release:    8%{?dist}
 License:    MIT
 URL:        http://www.x.org
 
@@ -115,6 +115,9 @@ install -p -m644 -D %{SOURCE18} $RPM_BUILD_ROOT%{_datadir}/xsessions/xinit-compa
 %{_datadir}/xsessions/xinit-compat.desktop
 
 %changelog
+* Thu Apr 30 2015 Hans de Goede <hdegoede at redhat.com> - 1.3.4-8
+- Only set XORG_RUN_AS_USER_OK when no vt is specified (#1203780)
+
 * Fri Mar 20 2015 Hans de Goede <hdegoede at redhat.com> - 1.3.4-7
 - Fix startx auto display select not working when a Xserver started by
   gdm is running
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/xorg-x11-xinit.git/commit/?h=f22&id=8f68bf4936a04fb7dccd18c5fa02f189c911bde3


More information about the scm-commits mailing list