summaryrefslogtreecommitdiff
path: root/gl/modules
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-07-05 17:18:29 +0200
committerJim Meyering <meyering@redhat.com>2010-07-05 17:39:51 +0200
commitd5427265e30522cfda098bb82ad3d4bff0a0d2bd (patch)
treedd0c0a621a0a7e2fd6415986f1e59f2414e1f13e /gl/modules
parent61aae73f5427c987b20604fbec5772e02edc0f74 (diff)
downloadcoreutils-d5427265e30522cfda098bb82ad3d4bff0a0d2bd.tar.xz
stat: getfilecon failure now evokes nonzero exit status
Add comments and adjust interfaces to allow low-level failure to propagate out to callers. * src/stat.c (out_file_context): Return bool, not void, so we can tell callers about failure. (print_statfs, print_stat, print_it): Propagate failure to caller. (do_statfs): Propagate print_it failure to caller. (do_stat): Likewise. I nearly forgot to update do_stat to propagate print_it failure, and it compiled just fine in spite of that. To prevent possibility of a repeat, I've marked each function that returns non-void with ATTRIBUTE_WARN_UNUSED_RESULT.
Diffstat (limited to 'gl/modules')
0 files changed, 0 insertions, 0 deletions