diff options
author | Ron Yorston <rmy@pobox.com> | 2017-08-22 14:56:12 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-08-22 14:56:12 +0100 |
commit | ce9af1cc5ea23f754587448cf35b5120c77bfeef (patch) | |
tree | 69e5eaba5e75ab909ed92d5045393471b8ff3c13 /libbb/copy_file.c | |
parent | c170026700eabb10147dd848c45c06995b43a32e (diff) | |
parent | e837a0dbbebf4229306df98fe9ee3b9bb30630c4 (diff) | |
download | busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.gz busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.bz2 busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.zip |
Merge branch 'busybox' into merge
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) |