diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2012-11-02 09:41:33 +0100 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-11-22 10:06:45 -0800 |
commit | 14693665710677dfc809af2db199be3ecadacb18 (patch) | |
tree | 9d5094c2e3faccce4c4f54836f3a88f792d68cc0 | |
parent | f35d192b5f4a35b30fdd5dfe21429f93f645c5ba (diff) |
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 <manu@netbsd.org>
Reviewed-on: http://review.gluster.org/4152
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
-rw-r--r-- | libglusterfs/src/statedump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/statedump.c b/libglusterfs/src/statedump.c index f74bd37cfba..b8ba882f3e4 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; |