summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenno Schulenberg <bensberg@justemail.net>2008-08-09 22:44:16 +0200
committerJim Meyering <meyering@redhat.com>2008-08-12 20:41:25 +0200
commitd9c088113705a92d2f607acaf45977ad40c1d4cf (patch)
treef610982f21855956ef494eb0acb83a1a0ae02756 /src
parent4290abda87f87cc473838a218e78a0f38c07a2b8 (diff)
downloadcoreutils-d9c088113705a92d2f607acaf45977ad40c1d4cf.tar.xz
id: remove superfluous condition test; it is caught at -Z above
Diffstat (limited to 'src')
-rw-r--r--src/id.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/id.c b/src/id.c
index 5b80e7a24..156b066dd 100644
--- 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