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>
Thu, 29 Mar 2007 19:37:05 +0000 (21:37 +0200)
commit4010e2d077e5031c464ead0f0ec0e664264d4107
tree05e073b0a4024593adaa9b6b4c3a9cca9f38d585
parent8c94771b88fa5d595c21383ba83a1311f4ed3884
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