summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2012-04-18 10:02:07 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2012-04-18 10:02:07 -0700
commiteda973a32552c916e7e7cce8877674106cbda0cb (patch)
tree8643a08c49eff816a6c186890644569c0f100b4b
parentc781653f956043e0ee476d4e95e0ae93b27aff96 (diff)
downloadxorg-app-xinit-eda973a32552c916e7e7cce8877674106cbda0cb.tar.gz
launchd: Fix the destination of moved-aside directories in privileged_startx
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-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 f48033d..7786426 100755
--- a/launchd/privileged_startx/10-tmpdirs.cpp
+++ b/launchd/privileged_startx/10-tmpdirs.cpp
@@ -46,7 +46,7 @@ for dir in /tmp/.ICE-unix /tmp/.X11-unix /tmp/.font-unix ; do
success=1
break
else
- saved=$(${MKTEMP} -d /tmp/${dir}-XXXXXXXX)
+ saved=$(${MKTEMP} -d ${dir}-XXXXXXXX)
mv ${dir} ${saved}
echo "${dir} exists but is insecure. It has been moved into ${saved}"
fi