wasi-libc icon indicating copy to clipboard operation
wasi-libc copied to clipboard

'mkdirat()' ignores the parameter 'mode'

Open Daksh-10 opened this issue 6 months ago • 2 comments

When we call mkdirat() it calls mkdir() https://github.com/WebAssembly/wasi-libc/blob/main/libc-bottom-half/sources/at_fdcwd.c#L47

And 'mkdir()' ignores mode https://github.com/WebAssembly/wasi-libc/blob/main/libc-bottom-half/sources/posix.c#L221

So, it does take 'mode' parameter from the developer, but it doesn't set the mode for the file.

Daksh-10 avatar Aug 17 '24 23:08 Daksh-10