stat: adjust the printing of SELinux context
commit77063bf819f44bbae4dd057e75d23ee72c728a63
authorPádraig Brady <P@draigBrady.com>
Tue, 5 Oct 2010 07:40:17 +0000 (5 08:40 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 5 Oct 2010 10:00:10 +0000 (5 11:00 +0100)
tree67d746cf6aa8bf2866ace23206bdfca96ce5df16
parent6ad89f223313920a4f752015cb76c9905c363179
stat: adjust the printing of SELinux context

* src/stat.c (default_format): Don't print SELinux context
when in file system (-f) mode, as the context is associated
with the file, not the file system.
Fix logic inversion, so that in terse mode, %C is included
only when is_selinux_enabled and not vice versa.
src/stat.c