]> git.ipfire.org Git - thirdparty/coreutils.git/commit
ls: readdir errno fixes
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jan 2025 18:43:06 +0000 (10:43 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jan 2025 18:44:18 +0000 (10:44 -0800)
commit0032e336e50c86186a01dbfa77364bc9c12235c1
tree41cc5f8e5035981a23c352958fea0c73d5fe388c
parent527d331af451f809f87fac846a8bd5a93ac4efb0
ls: readdir errno fixes

* src/ls.c (print_dir): Fix bug: file_failure can set errno to
something other than EOVERFLOW but the code assumed it didn’t.
Also, omit ENOENT bug workaround with glibc 2.3 and later,
for consistency with Gnulib.
src/ls.c