From b7459696dca96015688e82c81eaefad756b63ddc Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 5 Oct 2010 09:02:37 -0600 Subject: stat: drop %C support when printing file system details * src/stat.c (print_statfs, usage): Drop %C, since it applies to files, not file systems. (out_file_context): Match style of other out_* functions. (print_stat): Update caller. * doc/coreutils.texi (stat invocation): Document %C. * NEWS: Document the change. --- NEWS | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 719ac9c47..22f257ba6 100644 --- a/NEWS +++ b/NEWS @@ -76,10 +76,14 @@ GNU coreutils NEWS -*- outline -*- stat no longer accepts the --context (-Z) option. Initially it was merely accepted and ignored, for compatibility. Starting two years ago, with coreutils-7.0, its use evoked a warning. Printing the - SELinux context can be done with the %C format directive, and the - default output when no format is specified now automatically + SELinux context of a file can be done with the %C format directive, + and the default output when no format is specified now automatically includes %C when context information is available. + stat no longer accepts the %C directive when the --file-system + option is in effect, since security context is a file attribute + rather than a file system attribute. + stat now outputs the full sub-second resolution for the atime, mtime, and ctime values since the Epoch, when using the %X, %Y, and %Z directives of the --format option. This matches the fact that -- cgit v1.2.3-54-g00ecf