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/libbb/parse_mode.c

    r1765 r2725  
    55 * Copyright (C) 2003  Manuel Novoa III  <mjn3@codepoet.org>
    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
     
    1616#define FILEMODEBITS (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)
    1717
    18 int bb_parse_mode(const char *s, mode_t *current_mode)
     18int FAST_FUNC bb_parse_mode(const char *s, mode_t *current_mode)
    1919{
    2020    static const mode_t who_mask[] = {
     
    4141    char op;
    4242
    43     if (((unsigned int)(*s - '0')) < 8) {
     43    if ((unsigned char)(*s - '0') < 8) {
    4444        unsigned long tmp;
    4545        char *e;
     
    5858     * We treat an empty mode as no change to perms. */
    5959
    60     while (*s) {    /* Process clauses. */
    61         if (*s == ',') {    /* We allow empty clauses. */
     60    while (*s) {  /* Process clauses. */
     61        if (*s == ',') {  /* We allow empty clauses. */
    6262            ++s;
    6363            continue;
     
    7878        } while (*++p);
    7979
    80         do {    /* Process action list. */
     80        do {    /* Process action list. */
    8181            if ((*s != '+') && (*s != '-')) {
    8282                if (*s != '=') {
     
    9494
    9595            /* Check for permcopy. */
    96             p = who_chars + 1;  /* Skip 'a' entry. */
     96            p = who_chars + 1;  /* Skip 'a' entry. */
    9797            do {
    9898                if (*p == *s) {
     
    129129            } while (*++p);
    130130 GOT_ACTION:
    131             if (permlist) { /* The permlist was nonempty. */
     131            if (permlist) { /* The permlist was nonempty. */
    132132                mode_t tmp = wholist;
    133133                if (!wholist) {
Note: See TracChangeset for help on using the changeset viewer.