]> git.ipfire.org Git - thirdparty/coreutils.git/commit
stat: Add support for SELinux in the form of a %C format directive.
authorJim Meyering <jim@meyering.net>
Sun, 7 Jan 2007 08:15:42 +0000 (09:15 +0100)
committerJim Meyering <jim@meyering.net>
Sun, 18 Mar 2007 17:15:05 +0000 (18:15 +0100)
commit2912097e82c7ba3532a2a275c83995ef9b38b23e
tree8d2f32832d3a12c598b903a9e9ac560fd7a87ca5
parent32386059981a826de6827307b46c958c50a6077c
stat: Add support for SELinux in the form of a %C format directive.

* src/stat.c (follow_links): Make this variable file-global.
(out_file_context): New function.
(print_statfs): Honor %C.
(print_stat): Honor %C.
(do_stat): Remove follow_links parameter.
(usage): Document the two %C directives.
(main): Accept -Z (though it's a no-op).
* src/Makefile.am (stat_LDADD): Define.
src/Makefile.am
src/stat.c