aboutsummaryrefslogtreecommitdiff
path: root/libbb/copy_file.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2017-08-22 14:56:12 +0100
committerRon Yorston <rmy@pobox.com>2017-08-22 14:56:12 +0100
commitce9af1cc5ea23f754587448cf35b5120c77bfeef (patch)
tree69e5eaba5e75ab909ed92d5045393471b8ff3c13 /libbb/copy_file.c
parentc170026700eabb10147dd848c45c06995b43a32e (diff)
parente837a0dbbebf4229306df98fe9ee3b9bb30630c4 (diff)
downloadbusybox-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.c5
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)