projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a4d7f4
)
cp: make verbose cp show symlink copies too
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 14 Jul 2016 18:58:39 +0000
(20:58 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 14 Jul 2016 18:58:39 +0000
(20:58 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/copy_file.c
patch
|
blob
|
history
diff --git
a/libbb/copy_file.c
b/libbb/copy_file.c
index 23bcf2e828f03bcbc0654e115ae8d18131802ee8..7801b58c71b35ce29f24e580991ba955927d1c52 100644
(file)
--- a/
libbb/copy_file.c
+++ b/
libbb/copy_file.c
@@
-375,7
+375,7
@@
int FAST_FUNC copy_file(const char *source, const char *dest, int flags)
}
/* _Not_ jumping to preserve_mode_ugid_time:
* symlinks don't have those */
-
return 0
;
+
goto verb_and_exit
;
}
if (S_ISBLK(source_stat.st_mode) || S_ISCHR(source_stat.st_mode)
|| S_ISSOCK(source_stat.st_mode) || S_ISFIFO(source_stat.st_mode)
@@
-410,6
+410,7
@@
int FAST_FUNC copy_file(const char *source, const char *dest, int flags)
bb_perror_msg("can't preserve %s of '%s'", "permissions", dest);
}
+ verb_and_exit:
if (flags & FILEUTILS_VERBOSE) {
printf("'%s' -> '%s'\n", source, dest);
}