From 2ee82710c088461cf4d3769625723346345566f9 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 14 May 2013 14:00:08 +0530 Subject: libglusterfs/statedump: move options file and statedumps from /tmp Change-Id: I6b107b9a668b0521b955dba8895cbbeaf9e7cb02 BUG: 764890 Signed-off-by: Raghavendra Bhat Reviewed-on: http://review.gluster.org/5005 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- libglusterfs/src/run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs/src/run.c') diff --git a/libglusterfs/src/run.c b/libglusterfs/src/run.c index 34d75df69..adc61513a 100644 --- a/libglusterfs/src/run.c +++ b/libglusterfs/src/run.c @@ -467,7 +467,7 @@ main (int argc, char **argv) printf ("%d %d [%s]\n", ret, errno, strerror (errno)); TBANNER ("output redirection"); - fd = open ("/tmp/foof", O_WRONLY|O_CREAT|O_TRUNC, 0600); + fd = mkstemp ("/tmp/foof"); assert (fd != -1); runinit (&runner); runner_add_args (&runner, "echo", "foo", NULL); -- cgit