iowatcher: Fix mpstat file permissions
authorChris Mason <chris.mason@fusionio.com>
Mon, 27 Aug 2012 16:22:28 +0000 (12:22 -0400)
committerChris Mason <chris.mason@oracle.com>
Mon, 27 Aug 2012 16:22:28 +0000 (12:22 -0400)
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
iowatcher/tracers.c

index 362fb0f13832b40ed0c22721494de63023c4ef26..a995e11617e676c288aabb339f7cd0c910277ea6 100644 (file)
@@ -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));