summaryrefslogtreecommitdiff
path: root/extra/xdg-utils
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-04-17 22:07:52 +0100
committerdavidovski <david@davidovski.xyz>2022-04-17 22:07:52 +0100
commitc35d083dc525e223b085ec00e6863ea6eafb003c (patch)
tree5bbe25b4f92cd1821c8cbbefed9c19de6e42b98e /extra/xdg-utils
parent7cc715c1249422ddf91987be64a35eef43e3e62d (diff)
updated musl
Diffstat (limited to 'extra/xdg-utils')
-rw-r--r--extra/xdg-utils/xdg-screensaver-mv-T.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/extra/xdg-utils/xdg-screensaver-mv-T.patch b/extra/xdg-utils/xdg-screensaver-mv-T.patch
new file mode 100644
index 0000000..9e209f7
--- /dev/null
+++ b/extra/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()