Commit 9ab8a423 by Celine Mercier

fixed the mkdir permission mode that forced the user to use sudo to

write in the created directories
parent 7b606c04
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment