Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/selinux/chcon.c


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/selinux/chcon.c

    r1765 r2725  
    55 *
    66 * Copyright (C) 2006 - 2007 KaiGai Kohei <kaigai@kaigai.gr.jp>
     7 *
     8 * Licensed under GPLv2, see file LICENSE in this source tree.
    79 */
    810#include <getopt.h>
     
    2931static char *specified_context = NULL;
    3032
    31 static int change_filedir_context(const char *fname, struct stat *stbuf, void *userData, int depth)
     33static int FAST_FUNC change_filedir_context(
     34        const char *fname,
     35        struct stat *stbuf UNUSED_PARAM,
     36        void *userData UNUSED_PARAM,
     37        int depth UNUSED_PARAM)
    3238{
    3339    context_t context = NULL;
     
    4450    if (status < 0 && errno != ENODATA) {
    4551        if ((option_mask32 & OPT_QUIET) == 0)
    46             bb_error_msg("cannot obtain security context: %s", fname);
     52            bb_error_msg("can't obtain security context: %s", fname);
    4753        goto skip;
    4854    }
    4955
    5056    if (file_context == NULL && specified_context == NULL) {
    51         bb_error_msg("cannot apply partial context to unlabeled file %s", fname);
     57        bb_error_msg("can't apply partial context to unlabeled file %s", fname);
    5258        goto skip;
    5359    }
     
    5763                             user, role, type, range);
    5864        if (!context) {
    59             bb_error_msg("cannot compute security context from %s", file_context);
     65            bb_error_msg("can't compute security context from %s", file_context);
    6066            goto skip;
    6167        }
     
    7076    context_string = context_str(context);
    7177    if (!context_string) {
    72         bb_error_msg("cannot obtain security context in text expression");
     78        bb_error_msg("can't obtain security context in text expression");
    7379        goto skip;
    7480    }
     
    8591            printf(!fail
    8692                   ? "context of %s changed to %s\n"
    87                    : "failed to change context of %s to %s\n",
     93                   : "can't change context of %s to %s\n",
    8894                   fname, context_string);
    8995        }
     
    9197            rc = TRUE;
    9298        } else if ((option_mask32 & OPT_QUIET) == 0) {
    93             bb_error_msg("failed to change context of %s to %s",
     99            bb_error_msg("can't change context of %s to %s",
    94100                     fname, context_string);
    95101        }
     
    121127#endif
    122128
    123 int chcon_main(int argc, char **argv);
    124 int chcon_main(int argc, char **argv)
     129int chcon_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
     130int chcon_main(int argc UNUSED_PARAM, char **argv)
    125131{
    126132    char *reference_file;
Note: See TracChangeset for help on using the changeset viewer.