aboutsummaryrefslogtreecommitdiffstats
path: root/main/xdg-utils/xdg-screensaver-mv-T.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-11-19 15:07:24 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-11-19 15:12:33 +0000
commit8b4d9b5d69f651322f6b130b03a27fcb122faca7 (patch)
tree47f423f43bc33dbe0caa74ae7ce9119728137e10 /main/xdg-utils/xdg-screensaver-mv-T.patch
parentee98e0e7879729d235d8b8d9b381eb2c0bb4f00c (diff)
downloadaports-8b4d9b5d69f651322f6b130b03a27fcb122faca7.tar.bz2
aports-8b4d9b5d69f651322f6b130b03a27fcb122faca7.tar.xz
main/xdg-utils: upgrade to 1.1.1
Diffstat (limited to 'main/xdg-utils/xdg-screensaver-mv-T.patch')
-rw-r--r--main/xdg-utils/xdg-screensaver-mv-T.patch16
1 files changed, 8 insertions, 8 deletions
diff --git a/main/xdg-utils/xdg-screensaver-mv-T.patch b/main/xdg-utils/xdg-screensaver-mv-T.patch
index 6452d6307c..9e209f77c0 100644
--- a/main/xdg-utils/xdg-screensaver-mv-T.patch
+++ b/main/xdg-utils/xdg-screensaver-mv-T.patch
@@ -1,10 +1,10 @@
---- ./scripts/xdg-screensaver.orig
-+++ ./scripts/xdg-screensaver
-@@ -354,18 +354,10 @@
- return 0
- }
+--- ./scripts/xdg-screensaver.in.orig
++++ ./scripts/xdg-screensaver.in
+@@ -26,18 +26,10 @@
--# Check if we can use "mv -T"
+ #@xdg-utils-common@
+
+-# Check if we can use "mv -T"
-if mv -T ... ... 2>&1 | grep '\.\.\.' > /dev/null ; then
- # We can securely move files in /tmp with mv -T
- DEBUG 1 "mv -T available"
@@ -14,12 +14,12 @@
- # No secure moves available, use home dir
- DEBUG 1 "mv -T not available"
- MV="mv"
-- screensaver_file="$HOME/.xdg-screensaver-"`echo $HOSTNAME-$DISPLAY | sed 's/:/-/g'`
+- screensaver_file="$HOME/.xdg-screensaver-"`echo $(hostname)-$DISPLAY | sed 's/:/-/g'`
-fi
+# No secure moves available, use home dir
+DEBUG 1 "mv -T not available"
+MV="mv"
-+screensaver_file="$HOME/.xdg-screensaver-"`echo $HOSTNAME-$DISPLAY | sed 's/:/-/g'`
++screensaver_file="$HOME/.xdg-screensaver-"`echo $(hostname)-$DISPLAY | sed 's/:/-/g'`
lockfile_command=`which lockfile 2> /dev/null`
lockfile()