summarylogtreecommitdiffstats
path: root/startx-posix.patch
diff options
context:
space:
mode:
authorDaniel Moch2019-09-21 13:09:31 -0400
committerDaniel Moch2019-09-21 13:09:31 -0400
commitfb5ca3c857edff33871c5d4848fbd51bbadf67c3 (patch)
treea8745daee991b5d92d9864f33fe40e074e833968 /startx-posix.patch
downloadaur-fb5ca3c857edff33871c5d4848fbd51bbadf67c3.tar.gz
upgpkg: xorg-xinit-posix 1.4.1-1
Diffstat (limited to 'startx-posix.patch')
-rw-r--r--startx-posix.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/startx-posix.patch b/startx-posix.patch
new file mode 100644
index 000000000000..4a8723289397
--- /dev/null
+++ b/startx-posix.patch
@@ -0,0 +1,20 @@
+--- xinit-1.4.1-orig/startx.cpp 2019-09-21 12:59:28.894675922 -0400
++++ xinit-1.4.1/startx.cpp 2019-09-21 12:59:58.674672355 -0400
+@@ -205,7 +205,7 @@
+ XCOMM "https://bugzilla.redhat.com/show_bug.cgi?id=806491"
+ tty=$(tty)
+ if expr "$tty" : '/dev/tty[0-9][0-9]*$' > /dev/null; then
+- tty_num=$(echo "$tty" | grep -oE '[0-9]+$')
++ tty_num=$(echo "$tty" | sed -E 's/[a-zA-Z\/]//g')
+ vtarg="vt$tty_num -keeptty"
+ fi
+ #endif
+@@ -252,7 +252,7 @@
+ XCOMM set up default Xauth info for this machine
+ case `uname` in
+ Linux*)
+- if [ -z "`hostname --version 2>&1 | grep GNU`" ]; then
++ if [ -n "`hostname --version 2>&1 | grep GNU`" ]; then
+ hostname=`hostname -f`
+ else
+ hostname=`hostname`