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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user