Commit 8abfe7ff authored by Leigh Stoller's avatar Leigh Stoller

Add explicit chmod since mkdir combines the given mode with the

current umask, and so I don't get the protection value I want.
Too lazy to go figure it out, and adding a chmod was easiest!
parent e9a10517
......@@ -80,6 +80,10 @@ if (! mkdir("$PROJROOT/$pid", 0770)) {
die("Could not make directory $PROJROOT/$pid: $!\n");
}
if (! chmod(0770, "$PROJROOT/$pid")) {
die("Could not chmod directory $PROJROOT/$pid: $!\n");
}
if (! chown($uid, $gid, "$PROJROOT/$pid")) {
die("Could not chown $PROJROOT/$pid to $uid/$gid: $!\n");
}
......@@ -90,6 +94,9 @@ if (! chown($uid, $gid, "$PROJROOT/$pid")) {
if (! mkdir("$PROJROOT/$pid/exp", 0770)) {
die("Could not make directory $PROJROOT/$pid/exp: $!\n");
}
if (! chmod(0770, "$PROJROOT/$pid/exp")) {
die("Could not chmod directory $PROJROOT/$pid/exp: $!\n");
}
if (! chown($uid, $gid, "$PROJROOT/$pid/exp")) {
die("Could not chown $PROJROOT/$pid/exp to $uid/$gid: $!\n");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment