diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-21 23:40:20 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-21 23:40:20 +0000 |
commit | 05e73015aac1bc64cd889062328598c224f190de (patch) | |
tree | a6d0fa74d59e67d1570c54157f5ebcc47b4522d0 /coreutils/libcoreutils | |
parent | 2f36b989836df0f58dada461a7d7da608182cc02 (diff) | |
download | busybox-w32-05e73015aac1bc64cd889062328598c224f190de.tar.gz busybox-w32-05e73015aac1bc64cd889062328598c224f190de.tar.bz2 busybox-w32-05e73015aac1bc64cd889062328598c224f190de.zip |
cp: add support for -s, -l. Fix free(nonmalloc) bug.
Add doc on POSIX's rules on -i and -f (insane!).
ln: make "ln dangling_symlink new_link" work.
git-svn-id: svn://busybox.net/trunk/busybox@16419 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/libcoreutils')
-rw-r--r-- | coreutils/libcoreutils/cp_mv_stat.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/libcoreutils/cp_mv_stat.c b/coreutils/libcoreutils/cp_mv_stat.c index d401bcc75..0849ebc6c 100644 --- a/coreutils/libcoreutils/cp_mv_stat.c +++ b/coreutils/libcoreutils/cp_mv_stat.c | |||
@@ -20,8 +20,6 @@ | |||
20 | * | 20 | * |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include <errno.h> | ||
24 | #include <sys/stat.h> | ||
25 | #include "libbb.h" | 23 | #include "libbb.h" |
26 | #include "coreutils.h" | 24 | #include "coreutils.h" |
27 | 25 | ||
@@ -29,7 +27,7 @@ int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf) | |||
29 | { | 27 | { |
30 | if (sf(fn, fn_stat) < 0) { | 28 | if (sf(fn, fn_stat) < 0) { |
31 | if (errno != ENOENT) { | 29 | if (errno != ENOENT) { |
32 | bb_perror_msg("unable to stat `%s'", fn); | 30 | bb_perror_msg("unable to stat '%s'", fn); |
33 | return -1; | 31 | return -1; |
34 | } | 32 | } |
35 | return 0; | 33 | return 0; |