Changeset 1770 in MondoRescue for branches/stable/mindi-busybox/coreutils/libcoreutils/getopt_mk_fifo_nod.c
- Timestamp:
- Nov 6, 2007, 11:01:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi-busybox/coreutils/libcoreutils/getopt_mk_fifo_nod.c
r821 r1770 21 21 */ 22 22 23 #include <sys/types.h>24 #include <sys/stat.h>25 #include <unistd.h>26 23 #include "libbb.h" 27 24 #include "coreutils.h" … … 31 28 mode_t mode = 0666; 32 29 char *smode = NULL; 33 34 bb_getopt_ulflags(argc, argv, "m:", &smode); 35 if(smode) { 30 #if ENABLE_SELINUX 31 security_context_t scontext; 32 #endif 33 int opt; 34 opt = getopt32(argv, "m:" USE_SELINUX("Z:"), &smode USE_SELINUX(,&scontext)); 35 if (opt & 1) { 36 36 if (bb_parse_mode(smode, &mode)) 37 37 umask(0); 38 38 } 39 40 #if ENABLE_SELINUX 41 if (opt & 2) { 42 selinux_or_die(); 43 setfscreatecon_or_die(scontext); 44 } 45 #endif 46 39 47 return mode; 40 48 }
Note:
See TracChangeset
for help on using the changeset viewer.