Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158277
b: refs/heads/master
c: 119e7a2
h: refs/heads/master
i:
  158275: a2935c7
v: v3
  • Loading branch information
Pierre Habouzit authored and Ingo Molnar committed Aug 28, 2009
1 parent 9129359 commit 358b037
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7ced156bb8bb6363b6ed541871bf19a90273f910
refs/heads/master: 119e7a22bb70d84849384e5113792cd45afa4f85
4 changes: 2 additions & 2 deletions trunk/tools/perf/builtin-annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -984,8 +984,8 @@ static int __cmd_annotate(void)
exit(-1);
}

if (!force && (input_stat.st_uid != geteuid())) {
fprintf(stderr, "file: %s not owned by current user\n", input_name);
if (!force && input_stat.st_uid && (input_stat.st_uid != geteuid())) {
fprintf(stderr, "file: %s not owned by current user or root\n", input_name);
exit(-1);
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/tools/perf/builtin-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -1405,8 +1405,8 @@ static int __cmd_report(void)
exit(-1);
}

if (!force && (input_stat.st_uid != geteuid())) {
fprintf(stderr, "file: %s not owned by current user\n", input_name);
if (!force && input_stat.st_uid && (input_stat.st_uid != geteuid())) {
fprintf(stderr, "file: %s not owned by current user or root\n", input_name);
exit(-1);
}

Expand Down

0 comments on commit 358b037

Please sign in to comment.