diff --git a/src/common.c b/src/common.c
index 459c7024bb2bcb9824c0c131d5ea10a9e50845d4..406482ad6a84c5d13642d4a0f8b5bb5909b01434 100644 (file)
--- a/src/common.c
+++ b/src/common.c
{
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