id: remove superfluous condition test; it is caught at -Z above
authorBenno Schulenberg <bensberg@justemail.net>
Sat, 9 Aug 2008 20:44:16 +0000 (22:44 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 12 Aug 2008 18:41:25 +0000 (20:41 +0200)
src/id.c

index 5b80e7a..156b066 100644 (file)
--- a/src/id.c
+++ b/src/id.c
@@ -173,11 +173,6 @@ main (int argc, char **argv)
     error (EXIT_FAILURE, 0,
           _("cannot print security context when user specified"));
 
-  if (just_context && !selinux_enabled)
-    error (EXIT_FAILURE, 0, _("\
-cannot display context when selinux not enabled or when displaying the id\n\
-of a different user"));
-
   /* If we are on a selinux-enabled kernel and no user is specified,
      get our context. Otherwise, leave the context variable alone -
      it has been initialized known invalid value and will be not