diff options
Diffstat (limited to 'libbb/copy_file.c')
-rw-r--r-- | libbb/copy_file.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libbb/copy_file.c b/libbb/copy_file.c index cb6d12359..5372d8680 100644 --- a/libbb/copy_file.c +++ b/libbb/copy_file.c | |||
@@ -374,7 +374,10 @@ int FAST_FUNC copy_file(const char *source, const char *dest, int flags) | |||
374 | int r = symlink(lpath, dest); | 374 | int r = symlink(lpath, dest); |
375 | free(lpath); | 375 | free(lpath); |
376 | if (r < 0) { | 376 | if (r < 0) { |
377 | bb_perror_msg("can't create symlink '%s'", dest); | 377 | /* shared message */ |
378 | bb_perror_msg("can't create %slink '%s' to '%s'", | ||
379 | "sym", dest, lpath | ||
380 | ); | ||
378 | return -1; | 381 | return -1; |
379 | } | 382 | } |
380 | if (flags & FILEUTILS_PRESERVE_STATUS) | 383 | if (flags & FILEUTILS_PRESERVE_STATUS) |