Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/coreutils/chmod.c
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/coreutils/chmod.c
r1765 r2725 8 8 * to correctly parse '-rwxgoa' 9 9 * 10 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.10 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 11 11 */ 12 12 … … 21 21 22 22 #define OPT_RECURSE (option_mask32 & 1) 23 #define OPT_VERBOSE ( USE_DESKTOP(option_mask32 & 2) SKIP_DESKTOP(0))24 #define OPT_CHANGED ( USE_DESKTOP(option_mask32 & 4) SKIP_DESKTOP(0))25 #define OPT_QUIET ( USE_DESKTOP(option_mask32 & 8) SKIP_DESKTOP(0))26 #define OPT_STR "R" USE_DESKTOP("vcf")23 #define OPT_VERBOSE (IF_DESKTOP(option_mask32 & 2) IF_NOT_DESKTOP(0)) 24 #define OPT_CHANGED (IF_DESKTOP(option_mask32 & 4) IF_NOT_DESKTOP(0)) 25 #define OPT_QUIET (IF_DESKTOP(option_mask32 & 8) IF_NOT_DESKTOP(0)) 26 #define OPT_STR "R" IF_DESKTOP("vcf") 27 27 28 28 /* coreutils: … … 35 35 */ 36 36 37 static int fileAction(const char *fileName, struct stat *statbuf, void* param, int depth)37 static int FAST_FUNC fileAction(const char *fileName, struct stat *statbuf, void* param, int depth) 38 38 { 39 39 mode_t newmode; … … 51 51 52 52 if (!bb_parse_mode((char *)param, &newmode)) 53 bb_error_msg_and_die("invalid mode : %s", (char *)param);53 bb_error_msg_and_die("invalid mode '%s'", (char *)param); 54 54 55 55 if (chmod(fileName, newmode) == 0) { … … 64 64 err: 65 65 if (!OPT_QUIET) 66 bb_ perror_msg("%s",fileName);66 bb_simple_perror_msg(fileName); 67 67 return FALSE; 68 68 } 69 69 70 int chmod_main(int argc, char **argv) ;71 int chmod_main(int argc , char **argv)70 int chmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 71 int chmod_main(int argc UNUSED_PARAM, char **argv) 72 72 { 73 73 int retval = EXIT_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.