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
Location:
branches/2.2.9/mindi-busybox/coreutils/libcoreutils
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/coreutils/libcoreutils/Kbuild

    r1765 r2725  
     1# DO NOT EDIT. This file is generated from Kbuild.src
    12# Makefile for busybox
    23#
    34# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
    45#
    5 # Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
     6# Licensed under GPLv2 or later, see file LICENSE in this source tree.
    67
    78lib-y:=
     9
     10
    811lib-$(CONFIG_MKFIFO)    += getopt_mk_fifo_nod.o
    912lib-$(CONFIG_MKNOD) += getopt_mk_fifo_nod.o
  • branches/2.2.9/mindi-busybox/coreutils/libcoreutils/coreutils.h

    r1765 r2725  
    11/* vi: set sw=4 ts=4: */
    22/*
    3  * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
     3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    44 */
    55
    66#ifndef COREUTILS_H
    7 #define COREUTILS_H     1
     7#define COREUTILS_H 1
     8
     9PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
    810
    911typedef int (*stat_func)(const char *fn, struct stat *ps);
    1012
    11 int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf);
    12 int cp_mv_stat(const char *fn, struct stat *fn_stat);
     13int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf) FAST_FUNC;
     14int cp_mv_stat(const char *fn, struct stat *fn_stat) FAST_FUNC;
    1315
    14 mode_t getopt_mk_fifo_nod(int argc, char **argv);
     16mode_t getopt_mk_fifo_nod(char **argv) FAST_FUNC;
     17
     18POP_SAVED_FUNCTION_VISIBILITY
    1519
    1620#endif
  • 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);
  • branches/2.2.9/mindi-busybox/coreutils/libcoreutils/getopt_mk_fifo_nod.c

    r1765 r2725  
    2424#include "coreutils.h"
    2525
    26 mode_t getopt_mk_fifo_nod(int argc, char **argv)
     26mode_t FAST_FUNC getopt_mk_fifo_nod(char **argv)
    2727{
    2828    mode_t mode = 0666;
     
    3232#endif
    3333    int opt;
    34     opt = getopt32(argv, "m:" USE_SELINUX("Z:"), &smode USE_SELINUX(,&scontext));
     34    opt = getopt32(argv, "m:" IF_SELINUX("Z:"), &smode IF_SELINUX(,&scontext));
    3535    if (opt & 1) {
    3636        if (bb_parse_mode(smode, &mode))
Note: See TracChangeset for help on using the changeset viewer.