aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/cp.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/cp.c')
-rw-r--r--toys/posix/cp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/cp.c b/toys/posix/cp.c
index 9260d04b..f932ca4f 100644
--- a/toys/posix/cp.c
+++ b/toys/posix/cp.c
@@ -483,7 +483,7 @@ void install_main(void)
if (flags & FLAG_d) {
for (ss = toys.optargs; *ss; ss++) {
- if (mkpathat(AT_FDCWD, *ss, 0777, 3)) perror_msg("%s", *ss);
+ if (mkpathat(AT_FDCWD, *ss, 0777, 3)) perror_msg_raw(*ss);
if (flags & FLAG_v) printf("%s\n", *ss);
}