[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coreutils] [PATCH] stat: drop %C support when printing file system
From: |
Eric Blake |
Subject: |
Re: [coreutils] [PATCH] stat: drop %C support when printing file system details |
Date: |
Tue, 05 Oct 2010 09:07:54 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4 |
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 address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
- [coreutils] [PATCHv2] stat: print SELinux context when available, (continued)
- Re: [coreutils] [PATCHv2] stat: print SELinux context when available, Pádraig Brady, 2010/10/05
- Re: [coreutils] [PATCHv2] stat: print SELinux context when available, Jim Meyering, 2010/10/05
- Re: [coreutils] [PATCHv2] stat: print SELinux context when available, Pádraig Brady, 2010/10/05
- Re: [coreutils] [PATCHv2] stat: print SELinux context when available, Eric Blake, 2010/10/05
- Re: [coreutils] [PATCHv2] stat: print SELinux context when available, Jim Meyering, 2010/10/05
- [coreutils] [PATCH] stat: drop %C support when printing file system details, Eric Blake, 2010/10/05
- Re: [coreutils] [PATCH] stat: drop %C support when printing file system details,
Eric Blake <=
- Re: [coreutils] [PATCH] stat: drop %C support when printing file system details, Jim Meyering, 2010/10/05
- Re: [coreutils] [PATCH] stat: optimize and translate default format strings, Jim Meyering, 2010/10/01
- Re: [coreutils] [PATCH] stat: optimize and translate default format strings, Eric Blake, 2010/10/01
- Re: [coreutils] [PATCH] stat: optimize and translate default format strings, Jim Meyering, 2010/10/01