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);
|
||||
|
@ -165,7 +165,7 @@ OBIDMS_column_directory_p obi_create_column_directory(OBIDMS_p dms, const char*
|
||||
}
|
||||
|
||||
// Try to create the directory
|
||||
if (mkdirat(dms_file_descriptor, column_directory_name, 0x777) < 0)
|
||||
if (mkdirat(dms_file_descriptor, column_directory_name, 00777) < 0)
|
||||
{
|
||||
if (errno == EEXIST)
|
||||
obi_set_errno(OBICOLDIR_EXIST_ERROR);
|
||||
|
Reference in New Issue
Block a user