diff options
Diffstat (limited to 'coreutils/cp.c')
-rw-r--r-- | coreutils/cp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/cp.c b/coreutils/cp.c index 76dc566b3..889e4604d 100644 --- a/coreutils/cp.c +++ b/coreutils/cp.c | |||
@@ -87,7 +87,7 @@ int cp_main(int argc, char **argv) | |||
87 | } | 87 | } |
88 | 88 | ||
89 | while (1) { | 89 | while (1) { |
90 | dest = concat_path_file(last, bb_get_last_path_component(*argv)); | 90 | dest = concat_path_file(last, bb_get_last_path_component_strip(*argv)); |
91 | DO_COPY: | 91 | DO_COPY: |
92 | if (copy_file(*argv, dest, flags) < 0) { | 92 | if (copy_file(*argv, dest, flags) < 0) { |
93 | status = 1; | 93 | status = 1; |