From eef996bc011bf6e57b8954a27f6b5dd3abaaf405 Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Mon, 27 Aug 2012 12:22:28 -0400 Subject: [PATCH] iowatcher: Fix mpstat file permissions Signed-off-by: Chris Mason --- iowatcher/tracers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iowatcher/tracers.c b/iowatcher/tracers.c index 362fb0f..a995e11 100644 --- a/iowatcher/tracers.c +++ b/iowatcher/tracers.c @@ -184,7 +184,7 @@ int start_mpstat(char *trace_name) snprintf(line, line_len, "%s.mpstat", trace_name); - fd = open(line, O_WRONLY | O_CREAT | O_TRUNC); + fd = open(line, O_WRONLY | O_CREAT | O_TRUNC, 0600); if (fd < 0) { fprintf(stderr, "unable to open %s for writing err %s\n", line, strerror(errno)); -- 2.25.1