diff options
author | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2023-01-11 21:33:11 -0800 |
---|---|---|
committer | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2023-01-11 23:48:40 -0800 |
commit | 3172dc7e15b7a249555ca12e24f4a787164a7f8a (patch) | |
tree | 5b4d9e2841af3b3cb93a7ebfe107b940e8b8210e /launchd | |
parent | f9786fb5a7e526035699f3d4d6661468ab20e689 (diff) |
darwin: Remove bashism from 10-tmpdirs script
possible bashism in 10-tmpdirs line 57 (should be >word 2>&1):
if ${MKTEMP} -d ${dir} >& /dev/null ; then
Fixes: https://github.com/XQuartz/XQuartz/issues/316
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Diffstat (limited to 'launchd')
-rwxr-xr-x | launchd/privileged_startx/10-tmpdirs.cpp | 2 |
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 |