aboutsummaryrefslogtreecommitdiff
path: root/coreutils/libcoreutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-21 23:40:20 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-21 23:40:20 +0000
commitf24e1f40e032e99cf57a05730e7632b825d3016d (patch)
treea6d0fa74d59e67d1570c54157f5ebcc47b4522d0 /coreutils/libcoreutils
parent8d73c35916cbae67f5d0269b128de40f9992ddc6 (diff)
downloadbusybox-w32-f24e1f40e032e99cf57a05730e7632b825d3016d.tar.gz
busybox-w32-f24e1f40e032e99cf57a05730e7632b825d3016d.tar.bz2
busybox-w32-f24e1f40e032e99cf57a05730e7632b825d3016d.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.
Diffstat (limited to 'coreutils/libcoreutils')
-rw-r--r--coreutils/libcoreutils/cp_mv_stat.c4
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;