As per the title, this function currently calls the POSIX mkdir() function with mode = 0700 (here).
This is inconvenient when trying to share these directories with other users and it should instead create directories by subtracting the user mask (the value returned from the umask command) from 0777 == (S_IRWXU | S_IRWXG | S_IRWXO) (we should also use these macros rather than digits).
Having read the manual page for mkdir() a bit closer, I think the user mask is automatically subtracted from the mode so we can just set it to S_IRWXU | S_IRWXG | S_IRWXO.
As per the title, this function currently calls the POSIX
mkdir()
function withmode = 0700
(here).This is inconvenient when trying to share these directories with other users and it should instead create directories by subtracting the user mask (the value returned from the
umask
command) from0777 == (S_IRWXU | S_IRWXG | S_IRWXO)
(we should also use these macros rather than digits).