On 10/05/2010 09:06 AM, Eric Blake wrote:
* 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.
Oops - hit send before 'git commit --amend'. Squash this in:
diff --git i/NEWS w/NEWS
index 719ac9c..22f257b 100644
--- i/NEWS
+++ w/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
--
Eric Blake ebl...@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org