if (::stat(path, &swap_sb) < 0) {
debugs (47, 2, "COSS swap space space being allocated.");
-#if _SQUID_MSWIN_
-
- mkdir(path);
-#else
-
mkdir(path, 0700);
-#endif
-
}
/* should check here for directories instead of files, and for file size
} else {
fatalf("Swap directory %s is not a directory.", aPath);
}
-
-#if _SQUID_MSWIN_
-
- } else if (0 == mkdir(aPath)) {
-#else
-
} else if (0 == mkdir(aPath, 0755)) {
-#endif
debugs(47, (should_exist ? DBG_IMPORTANT : 3), aPath << " created");
created = 1;
} else {
if (dir_pointer == NULL) {
if (errno == ENOENT) {
debugs(36, DBG_CRITICAL, HERE << "WARNING: Creating " << p1);
-#if _SQUID_MSWIN_
-
- if (mkdir(p1) == 0)
-#else
-
if (mkdir(p1, 0777) == 0)
-#endif
-
return 0;
}