diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-12 21:22:55 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-12 21:22:55 +0300 |
commit | 39c651e9097e0e55a52c897982d6e84d281f7396 (patch) | |
tree | ad535283af2299825f65b6b44c889dc7e7bfc842 /coreutils/mkdir.c | |
parent | b3f09f4a5092aacbdc3da80d4fefeaf06445a4f8 (diff) |
introduce and use setfscreatecon_or_die
(patch by Yuichi Nakamura <ynakam@hitachisoft.jp>)
runcon: *yet another* fix for vda's brainfart :(
Diffstat (limited to 'coreutils/mkdir.c')
-rw-r--r-- | coreutils/mkdir.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/coreutils/mkdir.c b/coreutils/mkdir.c index 93ded1dd5..690e4ab40 100644 --- a/coreutils/mkdir.c +++ b/coreutils/mkdir.c @@ -62,10 +62,7 @@ int mkdir_main(int argc, char **argv) #if ENABLE_SELINUX if (opt & 4) { 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 |