diff options
author | Jim Meyering <meyering@redhat.com> | 2012-04-27 21:24:03 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-04-27 23:00:55 +0200 |
commit | c8b8279d2bd9ed1005ebbcca018446d3a245b97c (patch) | |
tree | eac81bce0d8daa50d906be42eeb0287a8f0b036f /doc | |
parent | a6719d9f7252bbd85eaab840a61dfc93d57b05c5 (diff) | |
download | coreutils-c8b8279d2bd9ed1005ebbcca018446d3a245b97c.tar.xz |
id: don't call getcon unnecessarily
* src/id.c (main): Invocations like "id" and "id -G" would call getcon
to determine the current security context even though that result would
not be used. Similarly, when POSIXLY_CORRECT is set. Rearrange
conditionals and hoist the POSIXLY_CORRECT test so that we call
getcon only when necessary.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions