fixed the mkdir permission mode that forced the user to use sudo to
write in the created directories
This commit is contained in:
@ -121,7 +121,7 @@ OBIDMS_p obi_create_dms(const char* dms_name)
|
||||
return NULL;
|
||||
|
||||
// Try to create the directory
|
||||
if (mkdir(directory_name, 0x777) < 0)
|
||||
if (mkdir(directory_name, 00777) < 0)
|
||||
{
|
||||
if (errno == EEXIST)
|
||||
obi_set_errno(OBIDMS_EXIST_ERROR);
|
||||
|
Reference in New Issue
Block a user