Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/selinux/setfiles.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/selinux/setfiles.c
r3232 r3621 18 18 //usage: "\n -d Show which specification matched each file" 19 19 //usage: "\n -l Log changes in file labels to syslog" 20 //TODO: log to syslog is not yet implemented, it goes to stdout only now 20 21 //usage: "\n -n Don't change any file labels" 21 22 //usage: "\n -q Suppress warnings" … … 77 78 struct edir excludeArray[MAX_EXCLUDES]; 78 79 } FIX_ALIASING; 79 #define G (*(struct globals*) &bb_common_bufsiz1)80 #define G (*(struct globals*)bb_common_bufsiz1) 80 81 void BUG_setfiles_globals_too_big(void); 81 82 #define INIT_G() do { \ 83 setup_common_bufsiz(); \ 82 84 if (sizeof(G) > COMMON_BUFSIZE) \ 83 85 BUG_setfiles_globals_too_big(); \ … … 252 254 if (excludeCtr > 0 && exclude(name)) 253 255 goto err; 254 255 256 } else { 256 257 char *p; … … 385 386 * same. For "-vv", emit everything. */ 386 387 if (verbose > 1 || !user_only_changed) { 387 bb_info_msg("%s: reset %s context %s->%s",388 printf("%s: reset %s context %s->%s\n", 388 389 applet_name, my_file, context ? context : "", newcon); 389 390 } … … 392 393 if (FLAG_l_take_log && !user_only_changed) { 393 394 if (context) 394 bb_info_msg("relabeling %s from %s to %s", my_file, context, newcon);395 printf("relabeling %s from %s to %s\n", my_file, context, newcon); 395 396 else 396 bb_info_msg("labeling %s to %s", my_file, newcon);397 printf("labeling %s to %s\n", my_file, newcon); 397 398 } 398 399
Note:
See TracChangeset
for help on using the changeset viewer.