From: Chris Mason Date: Mon, 27 Aug 2012 16:22:28 +0000 (-0400) Subject: iowatcher: Fix mpstat file permissions X-Git-Tag: blktrace-1.1.0~2^2~51 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=eef996bc011bf6e57b8954a27f6b5dd3abaaf405;p=blktrace.git iowatcher: Fix mpstat file permissions Signed-off-by: Chris Mason --- 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));