aboutsummaryrefslogtreecommitdiff
path: root/toys/other/realpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other/realpath.c')
-rw-r--r--toys/other/realpath.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/toys/other/realpath.c b/toys/other/realpath.c
index dc75840b..ec981082 100644
--- a/toys/other/realpath.c
+++ b/toys/other/realpath.c
@@ -20,9 +20,7 @@ void realpath_main(void)
char **s = toys.optargs;
for (s = toys.optargs; *s; s++) {
- if (!realpath(*s, toybuf)) {
- perror_msg("cannot access '%s'", *s);
- toys.exitval = 1;
- } else xputs(toybuf);
+ if (!realpath(*s, toybuf)) perror_msg("%s", *s);
+ else xputs(toybuf);
}
}