X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fcommon.c;h=406482ad6a84c5d13642d4a0f8b5bb5909b01434;hp=459c7024bb2bcb9824c0c131d5ea10a9e50845d4;hb=b4c8f3f762d666742c774ab3b45815e5a416e5da;hpb=c882e8a855a6803a498be2235560f8d0359edcb6 diff --git a/src/common.c b/src/common.c index 459c7024..406482ad 100644 --- a/src/common.c +++ b/src/common.c @@ -548,7 +548,7 @@ int check_create_dir (const char *file_orig) { if (errno == ENOENT) { - if (mkdir (dir, 0755) == 0) + if (mkdir (dir, S_IRWXU | S_IRWXG | S_IRWXO) == 0) break; /* this might happen, if a different thread created