#endif
#ifndef _WIN32
+#include <sys/stat.h> /* for mkdir */
#include <unistd.h> /* for getcwd */
#include <spawn.h> /* for posix_spawn */
extern char **environ; /* see environ (7) */
return ret;
#else
- return mkdir(path);
+ return mkdir(path, S_IRWXU | S_IRWXG | S_IRWXO);
#endif
}
#include <direct.h> /* for getcwd */
#else
#include <unistd.h> /* for getcwd */
+#include <sys/stat.h> /* for mkdir */
#endif
#define BEYOND_THRESHHOLD 40
return ret;
#else
- return mkdir(path);
+ return mkdir(path, S_IRWXU | S_IRWXG | S_IRWXO);
#endif
}
#include <windows.h>
#include <direct.h> /* for getcwd */
#else
+#include <sys/stat.h> /* for mkdir */
#include <unistd.h> /* for getcwd */
#endif
return ret;
#else
- return mkdir(path);
+ return mkdir(path, S_IRWXU | S_IRWXG | S_IRWXO);
#endif
}