From eda973a32552c916e7e7cce8877674106cbda0cb Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Wed, 18 Apr 2012 10:02:07 -0700 Subject: launchd: Fix the destination of moved-aside directories in privileged_startx Signed-off-by: Jeremy Huddleston --- launchd/privileged_startx/10-tmpdirs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3