diff options
author | Denis Vlasenko | 2007-08-25 21:14:55 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-08-25 21:14:55 +0000 |
commit | 30bab71f7bd8b3b31fedb90c2510fc89ade04619 (patch) | |
tree | 320c44b82b0e77898c2d85bb754bf7905d66f0dd /coreutils/libcoreutils | |
parent | 737d131e5e7a795ef771f987d7b02cbf4fa670d6 (diff) | |
download | busybox-30bab71f7bd8b3b31fedb90c2510fc89ade04619.zip busybox-30bab71f7bd8b3b31fedb90c2510fc89ade04619.tar.gz |
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/libcoreutils')
-rw-r--r-- | coreutils/libcoreutils/cp_mv_stat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/libcoreutils/cp_mv_stat.c b/coreutils/libcoreutils/cp_mv_stat.c index 2e4f25e..43583d4 100644 --- a/coreutils/libcoreutils/cp_mv_stat.c +++ b/coreutils/libcoreutils/cp_mv_stat.c @@ -31,7 +31,8 @@ int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf) return -1; } return 0; - } else if (S_ISDIR(fn_stat->st_mode)) { + } + if (S_ISDIR(fn_stat->st_mode)) { return 3; } return 1; |