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 /scripts/git-hooks/commit-msg | |
| parent | maint: id: minor factorization (diff) | |
| download | coreutils-c8b8279d2bd9ed1005ebbcca018446d3a245b97c.tar.gz coreutils-c8b8279d2bd9ed1005ebbcca018446d3a245b97c.zip | |
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 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions
