summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/graph.c')
-rw-r--r--libglusterfs/src/graph.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c
index ed12b1c0e7f..2e290bb20a1 100644
--- a/libglusterfs/src/graph.c
+++ b/libglusterfs/src/graph.c
@@ -15,6 +15,7 @@
#include <stdlib.h>
#include "defaults.h"
#include <unistd.h>
+#include "syscall.h"
#include "libglusterfs-messages.h"
@@ -834,13 +835,13 @@ glusterfs_volfile_reconfigure (int oldvollen, FILE *newvolfile_fp,
/*Calling unlink so that when the file is closed or program
*terminates the tempfile is deleted.
*/
- u_ret = unlink(temp_file);
+ u_ret = sys_unlink(temp_file);
if (u_ret < 0) {
gf_msg ("glusterfsd-mgmt", GF_LOG_ERROR, errno,
LG_MSG_TMPFILE_DELETE_FAILED, "Temporary file"
" delete failed.");
- close (file_desc);
+ sys_close (file_desc);
goto out;
}