]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
On native Windows mkdir() accept only one argument
authorserassio <>
Thu, 6 Jan 2005 21:09:26 +0000 (21:09 +0000)
committerserassio <>
Thu, 6 Jan 2005 21:09:26 +0000 (21:09 +0000)
src/fs/coss/store_dir_coss.cc

index 22905fee39fb040eb3e103d61433e3daf106494c..5f399a6d6d5a19682ff6142b42b78beca30e8ede 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_coss.cc,v 1.58 2005/01/06 13:16:39 serassio Exp $
+ * $Id: store_dir_coss.cc,v 1.59 2005/01/06 14:09:26 serassio Exp $
  * vim: set et : 
  *
  * DEBUG: section 47    Store COSS Directory Routines
@@ -911,7 +911,14 @@ CossSwapDir::create()
 
     if (::stat(path, &swap_sb) < 0) {
         debugs (47, 2, "COSS swap space space being allocated.");
+#ifdef _SQUID_MSWIN_
+
+        mkdir(path);
+#else
+
         mkdir(path, 0700);
+#endif
+
     }
 
     /* should check here for directories instead of files, and for file size