diff options
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index d2e28820ee60..ea6328a893cc 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -1405,8 +1405,8 @@ static int __cmd_report(void) | |||
1405 | exit(-1); | 1405 | exit(-1); |
1406 | } | 1406 | } |
1407 | 1407 | ||
1408 | if (!force && (input_stat.st_uid != geteuid())) { | 1408 | if (!force && input_stat.st_uid && (input_stat.st_uid != geteuid())) { |
1409 | fprintf(stderr, "file: %s not owned by current user\n", input_name); | 1409 | fprintf(stderr, "file: %s not owned by current user or root\n", input_name); |
1410 | exit(-1); | 1410 | exit(-1); |
1411 | } | 1411 | } |
1412 | 1412 | ||