@@ -27,7 +27,7 @@ use uucore::fs::dir_strip_dot_for_creation;
2727use uucore:: mode:: get_umask;
2828use uucore:: perms:: { Verbosity , VerbosityLevel , wrap_chown} ;
2929use uucore:: process:: { getegid, geteuid} ;
30- #[ cfg( feature = "selinux " ) ]
30+ #[ cfg( feature = "feat_selinux " ) ]
3131use uucore:: selinux:: { contexts_differ, set_selinux_security_context} ;
3232use uucore:: translate;
3333use uucore:: { format_usage, show, show_error, show_if_err} ;
@@ -113,7 +113,7 @@ enum InstallError {
113113 #[ error( "{}" , translate!( "install-error-extra-operand" , "operand" => . 0 . quote( ) , "usage" => . 1 . clone( ) ) ) ]
114114 ExtraOperand ( String , String ) ,
115115
116- #[ cfg( feature = "selinux " ) ]
116+ #[ cfg( feature = "feat_selinux " ) ]
117117 #[ error( "{}" , . 0 ) ]
118118 SelinuxContextFailed ( String ) ,
119119}
@@ -482,7 +482,7 @@ fn directory(paths: &[OsString], b: &Behavior) -> UResult<()> {
482482 show_if_err ! ( chown_optional_user_group( path, b) ) ;
483483
484484 // Set SELinux context for directory if needed
485- #[ cfg( feature = "selinux " ) ]
485+ #[ cfg( feature = "feat_selinux " ) ]
486486 show_if_err ! ( set_selinux_context( path, b) ) ;
487487 }
488488 // If the exit code was set, or show! has been called at least once
@@ -956,7 +956,7 @@ fn copy(from: &Path, to: &Path, b: &Behavior) -> UResult<()> {
956956 preserve_timestamps ( from, to) ?;
957957 }
958958
959- #[ cfg( feature = "selinux " ) ]
959+ #[ cfg( feature = "feat_selinux " ) ]
960960 if b. preserve_context {
961961 uucore:: selinux:: preserve_security_context ( from, to)
962962 . map_err ( |e| InstallError :: SelinuxContextFailed ( e. to_string ( ) ) ) ?;
@@ -1071,7 +1071,7 @@ fn need_copy(from: &Path, to: &Path, b: &Behavior) -> bool {
10711071 return true ;
10721072 }
10731073
1074- #[ cfg( feature = "selinux " ) ]
1074+ #[ cfg( feature = "feat_selinux " ) ]
10751075 if b. preserve_context && contexts_differ ( from, to) {
10761076 return true ;
10771077 }
@@ -1102,7 +1102,7 @@ fn need_copy(from: &Path, to: &Path, b: &Behavior) -> bool {
11021102 false
11031103}
11041104
1105- #[ cfg( feature = "selinux " ) ]
1105+ #[ cfg( feature = "feat_selinux " ) ]
11061106fn set_selinux_context ( path : & Path , behavior : & Behavior ) -> UResult < ( ) > {
11071107 if !behavior. preserve_context && behavior. context . is_some ( ) {
11081108 // Use the provided context set by -Z/--context
0 commit comments