@@ -63,9 +63,9 @@ macro_rules! cstr2cow {
6363}
6464
6565fn get_context_help_text ( ) -> String {
66- #[ cfg( not( any( feature = " selinux" , feature = "smack" ) ) ) ]
66+ #[ cfg( not( any( selinux, feature = "smack" ) ) ) ]
6767 return translate ! ( "id-context-help-disabled" ) ;
68- #[ cfg( any( feature = " selinux" , feature = "smack" ) ) ]
68+ #[ cfg( any( selinux, feature = "smack" ) ) ]
6969 return translate ! ( "id-context-help-enabled" ) ;
7070}
7171
@@ -99,7 +99,7 @@ struct State {
9999 rflag : bool , // --real
100100 zflag : bool , // --zero
101101 cflag : bool , // --context
102- #[ cfg( feature = " selinux" ) ]
102+ #[ cfg( selinux) ]
103103 selinux_supported : bool ,
104104 #[ cfg( feature = "smack" ) ]
105105 smack_supported : bool ,
@@ -141,7 +141,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
141141 zflag : matches. get_flag ( options:: OPT_ZERO ) ,
142142 cflag : matches. get_flag ( options:: OPT_CONTEXT ) ,
143143
144- #[ cfg( feature = " selinux" ) ]
144+ #[ cfg( selinux) ]
145145 selinux_supported : uucore:: selinux:: is_selinux_enabled ( ) ,
146146 #[ cfg( feature = "smack" ) ]
147147 smack_supported : uucore:: smack:: is_smack_enabled ( ) ,
@@ -179,7 +179,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
179179
180180 if state. cflag {
181181 // SELinux context
182- #[ cfg( feature = " selinux" ) ]
182+ #[ cfg( selinux) ]
183183 if state. selinux_supported {
184184 if let Ok ( context) = selinux:: SecurityContext :: current ( false ) {
185185 let bytes = context. as_bytes ( ) ;
@@ -702,7 +702,7 @@ fn id_print(state: &State, groups: &[u32]) -> io::Result<()> {
702702 . join( "," )
703703 ) ?;
704704
705- #[ cfg( feature = " selinux" ) ]
705+ #[ cfg( selinux) ]
706706 if state. selinux_supported
707707 && !state. user_specified
708708 && std:: env:: var_os ( "POSIXLY_CORRECT" ) . is_none ( )
0 commit comments