summary refs log tree commit diff stats
path: root/lib/pure/os.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-10-11 21:02:08 +0200
committerAraq <rumpf_a@web.de>2014-10-11 21:02:08 +0200
commit826d529256a51f15942685e6533faf5040605d18 (patch)
tree053aaa7758092d31fa7471c2793e062ae01b8c14 /lib/pure/os.nim
parent6a29fbf240e9395588dcf048ddd3037144c52e12 (diff)
parent34e96e37a12083e64be3842f5fc76fd795328e4a (diff)
downloadNim-826d529256a51f15942685e6533faf5040605d18.tar.gz
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
Diffstat (limited to 'lib/pure/os.nim')
-rw-r--r--lib/pure/os.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index cfff58eb0..71089494f 100644
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -1332,10 +1332,10 @@ proc removeDir*(dir: string) {.rtl, extern: "nos$1", tags: [
 
 proc rawCreateDir(dir: string) =
   when defined(solaris):
-    if mkdir(dir, 0o711) != 0'i32 and errno != EEXIST and errno != ENOSYS:
+    if mkdir(dir, 0o777) != 0'i32 and errno != EEXIST and errno != ENOSYS:
       osError(osLastError())
   elif defined(unix):
-    if mkdir(dir, 0o711) != 0'i32 and errno != EEXIST:
+    if mkdir(dir, 0o777) != 0'i32 and errno != EEXIST:
       osError(osLastError())
   else:
     when useWinUnicode: