aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mason <chris.mason@fusionio.com>2012-08-27 12:22:28 -0400
committerChris Mason <chris.mason@oracle.com>2012-08-27 12:22:28 -0400
commit914d96e0265c44a9b80dfdfef9cd094072336278 (patch)
tree0ff3a61cf8451050a4fe9dbdf5314c62f956594a
parent976a863adece6efcfd84956bbc9f31320db3395e (diff)
downloadiowatcher-914d96e0265c44a9b80dfdfef9cd094072336278.tar.gz
Fix mpstat file permissions
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
-rw-r--r--tracers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracers.c b/tracers.c
index 362fb0f..a995e11 100644
--- a/tracers.c
+++ b/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));