diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-24 17:20:13 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-24 17:20:13 +0200 |
commit | b920a38dc0a87f5884444d4731a8b887b5e16018 (patch) | |
tree | 5d845976a9471e705183db9afbbe7885e9070b52 /coreutils/link.c | |
parent | c810978552bc0133ba723ababaa178c8d53256e1 (diff) | |
download | busybox-w32-b920a38dc0a87f5884444d4731a8b887b5e16018.tar.gz busybox-w32-b920a38dc0a87f5884444d4731a8b887b5e16018.tar.bz2 busybox-w32-b920a38dc0a87f5884444d4731a8b887b5e16018.zip |
tar: postpone creation of symlinks with "suspicious" targets. Closes 8411
function old new delta
data_extract_all 968 1038 +70
tar_main 952 986 +34
scan_tree 258 262 +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 108/0) Total: 108 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/link.c')
-rw-r--r-- | coreutils/link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/link.c b/coreutils/link.c index 56832fdf6..6e20dafe3 100644 --- a/coreutils/link.c +++ b/coreutils/link.c | |||
@@ -33,7 +33,7 @@ int link_main(int argc UNUSED_PARAM, char **argv) | |||
33 | if (link(argv[0], argv[1]) != 0) { | 33 | if (link(argv[0], argv[1]) != 0) { |
34 | /* shared message */ | 34 | /* shared message */ |
35 | bb_perror_msg_and_die("can't create %slink " | 35 | bb_perror_msg_and_die("can't create %slink " |
36 | "%s to %s", "hard", | 36 | "'%s' to '%s'", "hard", |
37 | argv[1], argv[0] | 37 | argv[1], argv[0] |
38 | ); | 38 | ); |
39 | } | 39 | } |