summaryrefslogtreecommitdiff
path: root/user/xdg-utils/xdg-screensaver-mv-T.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-15 21:39:10 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-15 21:39:10 -0500
commit5adc4415792fd346c5c3d2041e90edfa5f713948 (patch)
tree4e0b21cfa65a1d6e68225ecc3c3a534fe350144c /user/xdg-utils/xdg-screensaver-mv-T.patch
parent9bf1c5d6837f6a4b853f4108668eff9b35e58dfa (diff)
downloadpackages-5adc4415792fd346c5c3d2041e90edfa5f713948.tar.gz
packages-5adc4415792fd346c5c3d2041e90edfa5f713948.tar.bz2
packages-5adc4415792fd346c5c3d2041e90edfa5f713948.tar.xz
packages-5adc4415792fd346c5c3d2041e90edfa5f713948.zip
user/xdg-utils: pull in, take, fix up
Diffstat (limited to 'user/xdg-utils/xdg-screensaver-mv-T.patch')
-rw-r--r--user/xdg-utils/xdg-screensaver-mv-T.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/user/xdg-utils/xdg-screensaver-mv-T.patch b/user/xdg-utils/xdg-screensaver-mv-T.patch
new file mode 100644
index 000000000..9e209f77c
--- /dev/null
+++ b/user/xdg-utils/xdg-screensaver-mv-T.patch
@@ -0,0 +1,25 @@
+--- ./scripts/xdg-screensaver.in.orig
++++ ./scripts/xdg-screensaver.in
+@@ -26,18 +26,10 @@
+
+ #@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"
+- MV="mv -T"
+- screensaver_file="/tmp/xdg-screensaver-$USER-"`echo $DISPLAY | sed 's/:/-/g'`
+-else
+- # 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'`
+-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'`
+ lockfile_command=`which lockfile 2> /dev/null`
+
+ lockfile()