authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-10-14 15:39:31-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-10-14 15:39:31-04:00
loga68dc65327469b4b2cc8a034d5e28dac86fe2802
tree3970466b24b45252b8f7cd027029887250c7b464
parent0bc80411f6a87a76edd0e3f04f697a0eab8ef9c0

fix os.makeDir for posix


1 files changed, 1 insertions(+), 1 deletions(-)

std/os/index.zig+1-1
...@@ -783,7 +783,7 @@ pub fn makeDirWindows(allocator: &Allocator, dir_path: []const u8) -> %void {...@@ -783,7 +783,7 @@ pub fn makeDirWindows(allocator: &Allocator, dir_path: []const u8) -> %void {
783}783}
784784
785pub fn makeDirPosix(allocator: &Allocator, dir_path: []const u8) -> %void {785pub fn makeDirPosix(allocator: &Allocator, dir_path: []const u8) -> %void {
786 const path_buf = cstr.addNullByte(allocator, dir_path);786 const path_buf = %return cstr.addNullByte(allocator, dir_path);
787 defer allocator.free(path_buf);787 defer allocator.free(path_buf);
788788
789 const err = posix.getErrno(posix.mkdir(path_buf.ptr, 0o755));789 const err = posix.getErrno(posix.mkdir(path_buf.ptr, 0o755));