Skip to content

Commit 995fe46

Browse files
committed
fix(mkdir): add feat_smack cfg alias
1 parent dae1402 commit 995fe46

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/uu/mkdir/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ use cfg_aliases::cfg_aliases;
88
pub fn main() {
99
cfg_aliases! {
1010
selinux: { all(feature = "feat_selinux", any(target_os = "android", target_os = "linux")) },
11+
smack: { all(feature = "feat_smack", target_os = "linux") },
1112
}
1213
}

src/uu/mkdir/src/mkdir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ fn create_single_dir(path: &Path, is_parent: bool, config: &Config) -> UResult<(
343343
}
344344

345345
// Apply SMACK context if requested
346-
#[cfg(feature = "smack")]
346+
#[cfg(smack)]
347347
if config.set_security_context {
348348
uucore::smack::set_smack_label_and_cleanup(path, config.context, |p| {
349349
std::fs::remove_dir(p)

0 commit comments

Comments
 (0)