Bug 216671 - stat -c "%C" prints "(null)" in apite of the security context.
stat -c "%C" prints "(null)" in apite of the security context.
Status: CLOSED DUPLICATE of bug 216670
Product: Fedora
Classification: Fedora
Component: coreutils (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Depends On:
  Show dependency treegraph
Reported: 2006-11-21 09:45 EST by KaiGai Kohei
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-11-21 09:49:37 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description KaiGai Kohei 2006-11-21 09:45:34 EST
Description of problem:
When we execute 'stat' with -c option and a format string including "%C",
it prints "(null)" in spite of the security context of the files specified.

Version-Release number of selected component (if applicable):
I confirmed it on coreutils-5.97-14.fc7.
Probably, we can reproduce this problem in any recent version of coreutils.

How reproducible:
% stat -c "%C" hoge.txt

We expect the following result.
% stat -c "%C" hoge.txt
Additional info:
Comment 1 Tim Waugh 2006-11-21 09:49:37 EST

*** This bug has been marked as a duplicate of 216670 ***

Note You need to log in before you can comment on or make changes to this bug.