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

Update to busybox 1.7.2

Location:
branches/2.2.5/mindi-busybox/coreutils/libcoreutils
Files:
1 added
2 deleted
3 edited

Legend:

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

    r821 r1765  
     1/* vi: set sw=4 ts=4: */
    12/*
    23 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
     
    89typedef int (*stat_func)(const char *fn, struct stat *ps);
    910
    10 extern int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf);
    11 extern int cp_mv_stat(const char *fn, struct stat *fn_stat);
     11int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf);
     12int cp_mv_stat(const char *fn, struct stat *fn_stat);
    1213
    13 extern mode_t getopt_mk_fifo_nod(int argc, char **argv);
     14mode_t getopt_mk_fifo_nod(int argc, char **argv);
    1415
    1516#endif
  • branches/2.2.5/mindi-busybox/coreutils/libcoreutils/cp_mv_stat.c

    r821 r1765  
    2121 */
    2222
    23 #include <errno.h>
    24 #include <sys/stat.h>
    2523#include "libbb.h"
    2624#include "coreutils.h"
     
    3028    if (sf(fn, fn_stat) < 0) {
    3129        if (errno != ENOENT) {
    32             bb_perror_msg("unable to stat `%s'", fn);
     30            bb_perror_msg("cannot stat '%s'", fn);
    3331            return -1;
    3432        }
  • 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.