Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-26 01:14:55 +0400
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-26 01:14:55 +0400
commit30bab71f7bd8b3b31fedb90c2510fc89ade04619 (patch)
tree320c44b82b0e77898c2d85bb754bf7905d66f0dd /coreutils/cp.c
parent737d131e5e7a795ef771f987d7b02cbf4fa670d6 (diff)
make copy_file() a bit easier to understand, and smaller
function old new delta copy_file 1565 1447 -118 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-118) Total: -118 bytes text data bss dec hex filename 770938 1063 10788 782789 bf1c5 busybox_old 770814 1063 10788 782665 bf149 busybox_unstripped
Diffstat (limited to 'coreutils/cp.c')
-rw-r--r--coreutils/cp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/coreutils/cp.c b/coreutils/cp.c
index 5b575819c..76dc566b3 100644
--- a/coreutils/cp.c
+++ b/coreutils/cp.c
@@ -69,7 +69,6 @@ int cp_main(int argc, char **argv)
if (argc == 2) {
s_flags = cp_mv_stat2(*argv, &source_stat,
(flags & FILEUTILS_DEREFERENCE) ? stat : lstat);
- /* TODO: does coreutils cp exit? "cp BAD GOOD dir"... */
if (s_flags < 0)
return EXIT_FAILURE;
d_flags = cp_mv_stat(last, &dest_stat);