summaryrefslogtreecommitdiff
path: root/launchd/privileged_startx
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2023-06-15 18:26:06 +0200
committerMatthieu Herrb <matthieu@herrb.eu>2023-06-15 18:26:06 +0200
commitce6002081191679ba01a7b60c09295898fae088b (patch)
tree4deb9a208120f9cacf3c84b991d76500a2cb7a71 /launchd/privileged_startx
parent6b3955f66df30c4d7f3ec954629a868e92ff7e67 (diff)
parent0fb9f76d3f0205298b0d98c5b0a9a09c4e418388 (diff)
Merge remote-tracking branch 'origin/master' into obsdobsd
Diffstat (limited to 'launchd/privileged_startx')
-rwxr-xr-xlaunchd/privileged_startx/10-tmpdirs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launchd/privileged_startx/10-tmpdirs.cpp b/launchd/privileged_startx/10-tmpdirs.cpp
index 4366696..ec79ae4 100755
--- a/launchd/privileged_startx/10-tmpdirs.cpp
+++ b/launchd/privileged_startx/10-tmpdirs.cpp
@@ -54,7 +54,7 @@ for dir in /tmp/.ICE-unix /tmp/.X11-unix /tmp/.font-unix ; do
# Use mktemp rather than mkdir to avoid possible security issue
# if $dir exists and is a symlink (ie protect against a race
# against the above check)
- if ${MKTEMP} -d ${dir} >& /dev/null ; then
+ if ${MKTEMP} -d ${dir} > /dev/null 2>&1 ; then
chmod 1777 $dir
chown root:wheel $dir
success=1