Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/coreutils/libcoreutils/cp_mv_stat.c

    r1765 r2725  
    2424#include "coreutils.h"
    2525
    26 int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf)
     26int FAST_FUNC cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf)
    2727{
    2828    if (sf(fn, fn_stat) < 0) {
    2929        if (errno != ENOENT) {
    30             bb_perror_msg("cannot stat '%s'", fn);
     30#if ENABLE_FEATURE_VERBOSE_CP_MESSAGE
     31            if (errno == ENOTDIR) {
     32                bb_error_msg("can't stat '%s': Path has non-directory component", fn);
     33                return -1;
     34            }
     35#endif
     36            bb_perror_msg("can't stat '%s'", fn);
    3137            return -1;
    3238        }
    3339        return 0;
    34     } else if (S_ISDIR(fn_stat->st_mode)) {
     40    }
     41    if (S_ISDIR(fn_stat->st_mode)) {
    3542        return 3;
    3643    }
     
    3845}
    3946
    40 int cp_mv_stat(const char *fn, struct stat *fn_stat)
     47int FAST_FUNC cp_mv_stat(const char *fn, struct stat *fn_stat)
    4148{
    4249    return cp_mv_stat2(fn, fn_stat, stat);
Note: See TracChangeset for help on using the changeset viewer.