"Steven Edwards" steven_ed4153@yahoo.com wrote:
+int sys_mkdir(const char *path, mode_t mode) +{ +#ifdef HAVE_MKDIR_MODE
- return mkdir(path, mode);
+#else
- return mkdir(path);
+#endif +}
Wouldn't it be better to emulate
mkdir(path, mode);
with
mkdir(path); chmod(path, mode);