Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/coreutils/mkdir.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/coreutils/mkdir.c
r3232 r3621 49 49 "context\0" Required_argument "Z" 50 50 #endif 51 #if ENABLE_FEATURE_VERBOSE 51 52 "verbose\0" No_argument "v" 53 #endif 52 54 ; 53 55 #endif … … 68 70 applet_long_options = mkdir_longopts; 69 71 #endif 70 opt = getopt32(argv, "m:p " IF_SELINUX("Z:") "v", &smode IF_SELINUX(,&scontext));72 opt = getopt32(argv, "m:pv" IF_SELINUX("Z:"), &smode IF_SELINUX(,&scontext)); 71 73 if (opt & 1) { 72 mode_t mmode = 0777;73 if ( !bb_parse_mode(smode, &mmode)) {74 mode_t mmode = bb_parse_mode(smode, 0777); 75 if (mmode == (mode_t)-1) { 74 76 bb_error_msg_and_die("invalid mode '%s'", smode); 75 77 } … … 78 80 if (opt & 2) 79 81 flags |= FILEUTILS_RECUR; 82 if ((opt & 4) && FILEUTILS_VERBOSE) 83 flags |= FILEUTILS_VERBOSE; 80 84 #if ENABLE_SELINUX 81 if (opt & 4) {85 if (opt & 8) { 82 86 selinux_or_die(); 83 87 setfscreatecon_or_die(scontext);
Note:
See TracChangeset
for help on using the changeset viewer.