diff options
author | Chris Mason <chris.mason@fusionio.com> | 2012-08-27 12:22:28 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2012-08-27 12:22:28 -0400 |
commit | eef996bc011bf6e57b8954a27f6b5dd3abaaf405 (patch) | |
tree | e78680aa8e7af12999282e3616b7b91217d8a57a | |
parent | bfb0e441b93e6c3728679e7475145089fd02be27 (diff) | |
download | blktrace-eef996bc011bf6e57b8954a27f6b5dd3abaaf405.tar.gz |
iowatcher: Fix mpstat file permissions
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
-rw-r--r-- | iowatcher/tracers.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |