]> git.ipfire.org Git - thirdparty/coreutils.git/commit
ls: don't use an undefined struct stat after failed stat/lstat
authorJim Meyering <meyering@redhat.com>
Tue, 29 Sep 2009 05:28:01 +0000 (07:28 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 29 Sep 2009 12:12:30 +0000 (14:12 +0200)
commitb7aaa0da8b47f4f373d3e0876bd540986278c6e2
tree7e3d1bbd71964a5e001afa172e43749bc29d0246
parent36edf7bad2ab76720a0bf6519074d23d4b8823a7
ls: don't use an undefined struct stat after failed stat/lstat

* src/ls.c (format_inode): Access f->stat only if f->stat_ok is set.
* NEWS (Bug fixes): Mention it.
Improved-by: Pádraig Brady <P@draigBrady.com>
NEWS
src/ls.c