Commit 6e8e590c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Set correct mode on -C mode workdir

Fixes #2227
parent 6207b703
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <string.h> #include <string.h>
#include <syslog.h> #include <syslog.h>
#include <unistd.h> #include <unistd.h>
#include <sys/stat.h>
#include "mgt/mgt.h" #include "mgt/mgt.h"
#include "common/heritage.h" #include "common/heritage.h"
...@@ -730,6 +731,7 @@ main(int argc, char * const *argv) ...@@ -730,6 +731,7 @@ main(int argc, char * const *argv)
if (C_flag) { if (C_flag) {
if (n_arg == NULL) { if (n_arg == NULL) {
AN(mkdtemp(Cn_arg)); AN(mkdtemp(Cn_arg));
AZ(chmod(Cn_arg, 0755));
n_arg = Cn_arg; n_arg = Cn_arg;
} }
} }
......
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