From 14693665710677dfc809af2db199be3ecadacb18 Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Fri, 2 Nov 2012 09:41:33 +0100 Subject: Use more portable mkstemp() instead fo mkostemp() mkostemp() with O_CREAT|O_EXCL|O_RDWR|O_TRUNC|O_APPEND is mkstemp() and mkstemp() is available on more systems than mkostemp() NULL-commit to cause jankins ro rebuild BUG: 764655 Change-Id: I6ee0f635d3699bd70b0963b24af07bd7d5c2dc58 Signed-off-by: Emmanuel Dreyfus Reviewed-on: http://review.gluster.org/4152 Reviewed-by: Kaleb KEITHLEY Tested-by: Gluster Build System --- libglusterfs/src/statedump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs') diff --git a/libglusterfs/src/statedump.c b/libglusterfs/src/statedump.c index f74bd37cf..b8ba882f3 100644 --- a/libglusterfs/src/statedump.c +++ b/libglusterfs/src/statedump.c @@ -58,7 +58,7 @@ gf_proc_dump_open (char *tmpname) { int dump_fd = -1; - dump_fd = mkostemp (tmpname, O_CREAT|O_EXCL|O_RDWR|O_TRUNC|O_APPEND); + dump_fd = mkstemp (tmpname); if (dump_fd < 0) return -1; -- cgit