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

write in the created directories
This commit is contained in:
Celine Mercier
2015-09-21 15:48:02 +02:00
parent 7b606c0477
commit 9ab8a42340
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);