changed the private *at functions to the official ones for openat and

mkdirat, but not for opendirat, as there is no official version of it.
This commit is contained in:
celinemercier
2015-07-20 11:38:43 +02:00
parent 802f9983c2
commit 484fcca557
4 changed files with 74 additions and 73 deletions

View File

@@ -13,6 +13,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <fcntl.h>
#include <unistd.h>
@@ -158,7 +159,7 @@ OBIDMS_column_directory_p obi_create_column_directory(OBIDMS_p dms, const char*
}
// Try to create the directory
if (private_mkdirat(dms_file_descriptor, column_directory_name, 0x777) < 0)
if (mkdirat(dms_file_descriptor, column_directory_name, 0x777) < 0)
{
if (errno == EEXIST)
obi_set_errno(OBICOLDIR_EXIST_ERROR);