From 39c651e9097e0e55a52c897982d6e84d281f7396 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 12 Mar 2007 18:22:55 +0000 Subject: introduce and use setfscreatecon_or_die (patch by Yuichi Nakamura ) runcon: *yet another* fix for vda's brainfart :( --- coreutils/libcoreutils/getopt_mk_fifo_nod.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'coreutils/libcoreutils') diff --git a/coreutils/libcoreutils/getopt_mk_fifo_nod.c b/coreutils/libcoreutils/getopt_mk_fifo_nod.c index 2e0c274..32fa9be 100644 --- a/coreutils/libcoreutils/getopt_mk_fifo_nod.c +++ b/coreutils/libcoreutils/getopt_mk_fifo_nod.c @@ -43,10 +43,7 @@ mode_t getopt_mk_fifo_nod(int argc, char **argv) #if ENABLE_SELINUX if (opt & 2) { selinux_or_die(); - if (setfscreatecon(scontext)) { - bb_error_msg_and_die("cannot set default file creation context " - "to %s", scontext); - } + setfscreatecon_or_die(scontext); } #endif -- cgit v1.1