From: Jim Meyering Date: Tue, 25 Jul 2006 15:25:37 +0000 (+0000) Subject: * src/ls.c (gobble_file) [USE_ACL]: Don't use-uninitialized the X-Git-Tag: v6.0~99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a06d062c78b2f0b755eef9c4ec2faaf385fa6ac;p=thirdparty%2Fcoreutils.git * src/ls.c (gobble_file) [USE_ACL]: Don't use-uninitialized the have_acl member. That would happen for a directory with both a non-stat'able entry and one with an ACL. --- diff --git a/ChangeLog b/ChangeLog index f95ec10fe7..e5cfb9cdb5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-07-25 Jim Meyering + * src/ls.c (gobble_file) [USE_ACL]: Don't use-uninitialized the + have_acl member. That would happen for a directory with both a + non-stat'able entry and one with an ACL. + * src/ls.c (gobble_file): Make it so failure to stat a non-command-line file provokes an exit status of 1, not 0. Say "cannot access" rather than "cannot stat". diff --git a/src/ls.c b/src/ls.c index 64411d19e9..67f16bd6bc 100644 --- a/src/ls.c +++ b/src/ls.c @@ -2622,6 +2622,9 @@ gobble_file (char const *name, enum filetype type, ino_t inode, f->filetype = type; memset (&f->stat, '\0', sizeof (f->stat)); +#if USE_ACL + f->have_acl = false; +#endif f->name = xstrdup (absolute_name); files_index++;