Commit 7c71ddab authored by Rusty Russell's avatar Rusty Russell

Patch from Joey Adams:

(15:27:11) joeyadams: ccanlint's handle_no_tests apparently has a bug.  It makes the test directory with 
0600 permissions, so it can't be used.  the x bit provides directory listing privilege
(15:27:25) joeyadams: this gives me Permission denied when I try to run it
(15:28:34) joeyadams: Changing the opcode to 0700 makes the creation of run.c work
parent 33cf75ea
...@@ -80,7 +80,7 @@ static void handle_no_tests(struct manifest *m, void *check_result) ...@@ -80,7 +80,7 @@ static void handle_no_tests(struct manifest *m, void *check_result)
if (!ask("Should I create a template test/run.c file for you?")) if (!ask("Should I create a template test/run.c file for you?"))
return; return;
if (mkdir("test", 0600) != 0) { if (mkdir("test", 0700) != 0) {
if (errno != EEXIST) if (errno != EEXIST)
err(1, "Creating test/ directory"); err(1, "Creating test/ directory");
} }
......
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