Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/coreutils/chmod.c


Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/coreutils/chmod.c

    r3232 r3621  
    7070            return TRUE;
    7171    }
    72     newmode = statbuf->st_mode;
    7372
    74     if (!bb_parse_mode((char *)param, &newmode))
     73    newmode = bb_parse_mode((char *)param, statbuf->st_mode);
     74    if (newmode == (mode_t)-1)
    7575        bb_error_msg_and_die("invalid mode '%s'", (char *)param);
    7676
Note: See TracChangeset for help on using the changeset viewer.