Skip to content

Commit 8a35daf

Browse files
committed
tst_rod: Fix path names in error messages
Fixing obvious copy paste error. Signed-off-by: Petr Vorel <pvorel@suse.cz>
1 parent 0bb8dfd commit 8a35daf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testcases/lib/tst_rod.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ int main(int argc, char *argv[])
113113
if (open(stdout_path, O_CREAT|O_WRONLY|O_TRUNC, 0777) < 0) {
114114
fprintf(stderr,
115115
"%s: Failed to open '%s' for writing: %s\n",
116-
argv[0], stdin_path, strerror(errno));
116+
argv[0], stdout_path, strerror(errno));
117117
return 1;
118118
}
119119
}
@@ -131,7 +131,7 @@ int main(int argc, char *argv[])
131131
if (fd < 0) {
132132
fprintf(stderr,
133133
"%s: Failed to open '%s' for writing: %s\n",
134-
argv[0], stdin_path, strerror(errno));
134+
argv[0], stderr_path, strerror(errno));
135135
return 1;
136136
}
137137

0 commit comments

Comments
 (0)