Ignore:
Timestamp:
Nov 4, 2007, 3:16:40 AM (16 years ago)
Author:
Bruno Cornec
Message:

Update to busybox 1.7.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi-busybox/coreutils/libcoreutils/getopt_mk_fifo_nod.c

    r821 r1765  
    2121 */
    2222
    23 #include <sys/types.h>
    24 #include <sys/stat.h>
    25 #include <unistd.h>
    2623#include "libbb.h"
    2724#include "coreutils.h"
     
    3128    mode_t mode = 0666;
    3229    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) {
    3636        if (bb_parse_mode(smode, &mode))
    3737            umask(0);
    3838    }
     39
     40#if ENABLE_SELINUX
     41    if (opt & 2) {
     42        selinux_or_die();
     43        setfscreatecon_or_die(scontext);
     44    }
     45#endif
     46
    3947    return mode;
    4048}
Note: See TracChangeset for help on using the changeset viewer.