diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-13 16:52:00 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-13 16:52:00 +0000 |
commit | d5fe880a57bc140f2e1469d2f1c75f815df94eff (patch) | |
tree | 666b3f300bf6eebfd407df9b6d4a0192275eeb8e /coreutils | |
parent | 9d96af2e83a9519ac89ff0f8dae7f8478d33f581 (diff) | |
download | busybox-w32-d5fe880a57bc140f2e1469d2f1c75f815df94eff.tar.gz busybox-w32-d5fe880a57bc140f2e1469d2f1c75f815df94eff.tar.bz2 busybox-w32-d5fe880a57bc140f2e1469d2f1c75f815df94eff.zip |
cp: add ENABLE_FEATURE_VERBOSE_CP_MESSAGE. Closes bug 1470
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/libcoreutils/cp_mv_stat.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/coreutils/libcoreutils/cp_mv_stat.c b/coreutils/libcoreutils/cp_mv_stat.c index 43583d48b..ff7c27399 100644 --- a/coreutils/libcoreutils/cp_mv_stat.c +++ b/coreutils/libcoreutils/cp_mv_stat.c | |||
@@ -27,6 +27,12 @@ int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf) | |||
27 | { | 27 | { |
28 | if (sf(fn, fn_stat) < 0) { | 28 | if (sf(fn, fn_stat) < 0) { |
29 | if (errno != ENOENT) { | 29 | if (errno != ENOENT) { |
30 | #if ENABLE_FEATURE_VERBOSE_CP_MESSAGE | ||
31 | if (errno == ENOTDIR) { | ||
32 | bb_error_msg("cannot stat '%s': Path has non-directory component", fn); | ||
33 | return -1; | ||
34 | } | ||
35 | #endif | ||
30 | bb_perror_msg("cannot stat '%s'", fn); | 36 | bb_perror_msg("cannot stat '%s'", fn); |
31 | return -1; | 37 | return -1; |
32 | } | 38 | } |