fix int set (#163)

This commit is contained in:
Bung 2022-12-19 19:28:22 +08:00 committed by GitHub
parent f5846de7b2
commit f2f9685ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -508,11 +508,11 @@ proc rawCreateDir(dir: string, mode: int = 0o755,
## path ``dir`` is already exists.
when defined(posix):
when defined(solaris):
let existFlags = {EEXIST, ENOSYS}
let existFlags = [EEXIST, ENOSYS]
elif defined(haiku):
let existFlags = {EEXIST, EROFS}
let existFlags = [EEXIST, EROFS]
else:
let existFlags = {EEXIST}
let existFlags = [EEXIST]
while true:
let omask = setUmask(0)
let res = posix.mkdir(cstring(dir), Mode(mode))