opnsense-src/bin/ls
Kyle Evans 7bb6c194c9 ls: check fts_children() for errors that may not surface otherwise
In particular, if one simply does a non-recursive `ls` on a directory
that is not accessible, there are some classes of errors that may cause
it to fail that wouldn't be surfaced unless we do an fts_read() that
will recurse into the inaccessible directory.  Catch those kinds of
errors here since we cannot expect to an FTS_ERR/FTS_DNR entry to follow
up on them.

PR:		287451
Reviewed by:	kib
Discusssed with:	des

(cherry picked from commit 7bf81e39d83087dc7f984077b5eed5a48df794d4)
2026-04-11 22:15:15 -05:00
..
tests ls: check fts_children() for errors that may not surface otherwise 2026-04-11 22:15:15 -05:00
cmp.c bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
extern.h bin: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
ls.1 ls.1: bump date after 82fa7f83b5 and 8b92977857 2025-01-16 17:05:43 +01:00
ls.c ls: check fts_children() for errors that may not surface otherwise 2026-04-11 22:15:15 -05:00
ls.h bin: Remove ancient SCCS tags. 2023-11-26 22:23:28 -07:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend.options Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
print.c ls -lh: humanize the total 2025-01-16 17:00:17 +01:00
util.c ls: implement --group-directories-first for compatibility with GNU ls 2025-01-16 17:00:17 +01:00