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/mkdir.c

    r1765 r2725  
    55 * Copyright (C) 2001 Matt Kraai <kraai@alumni.carnegiemellon.edu>
    66 *
    7  * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
     7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    88 */
    99
     
    2020 */
    2121
    22 #include <getopt.h> /* struct option */
    2322#include "libbb.h"
    2423
     
    3534#endif
    3635
    37 int mkdir_main(int argc, char **argv);
    38 int mkdir_main(int argc, char **argv)
     36int mkdir_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
     37int mkdir_main(int argc UNUSED_PARAM, char **argv)
    3938{
    4039    mode_t mode = (mode_t)(-1);
     
    5049    applet_long_options = mkdir_longopts;
    5150#endif
    52     opt = getopt32(argv, "m:p" USE_SELINUX("Z:"), &smode USE_SELINUX(,&scontext));
     51    opt = getopt32(argv, "m:p" IF_SELINUX("Z:"), &smode IF_SELINUX(,&scontext));
    5352    if (opt & 1) {
    5453        mode = 0777;
     
    6665#endif
    6766
    68     if (optind == argc) {
     67    argv += optind;
     68    if (!argv[0])
    6969        bb_show_usage();
    70     }
    71 
    72     argv += optind;
    7370
    7471    do {
Note: See TracChangeset for help on using the changeset viewer.