aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r--tools/perf/builtin-script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c
index f0c77a199616..27de6068049d 100644
--- a/tools/perf/builtin-script.c
+++ b/tools/perf/builtin-script.c
@@ -1525,7 +1525,7 @@ int cmd_script(int argc, const char **argv, const char *prefix __maybe_unused)
1525 return -1; 1525 return -1;
1526 } 1526 }
1527 1527
1528 input = open(session->filename, O_RDONLY); /* input_name */ 1528 input = open(file.path, O_RDONLY); /* input_name */
1529 if (input < 0) { 1529 if (input < 0) {
1530 perror("failed to open file"); 1530 perror("failed to open file");
1531 return -1; 1531 return -1;