projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfb0e44
)
iowatcher: Fix mpstat file permissions
author
Chris Mason
<chris.mason@fusionio.com>
Mon, 27 Aug 2012 16:22:28 +0000
(12:22 -0400)
committer
Chris 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
patch
|
blob
|
blame
|
history
diff --git
a/iowatcher/tracers.c
b/iowatcher/tracers.c
index 362fb0f13832b40ed0c22721494de63023c4ef26..a995e11617e676c288aabb339f7cd0c910277ea6 100644
(file)
--- 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));