opnsense-src/lib/libc
David Schultz 1e03bff7f2 In fts_build(), if we try to chdir and fail (e.g. due to lack of search
permission), try to continue in FTS_DONTCHDIR mode.  Of course this
won't work for long paths, but we can't descend more than one pathname
component beyond the directory anyway if we lack search permission.

Here is a transcript demonstrating the change, where oldls is ls(1)
linked with the old fts(3):

	das@VARK:~> mkdir t && touch t/{a,b,c} && chmod u-x t
	das@VARK:~> oldls t
	a       b       c
	das@VARK:~> oldls -l t
	das@VARK:~> \ls t
	a       b       c
	das@VARK:~> \ls -l t
	ls: a: Permission denied
	ls: b: Permission denied
	ls: c: Permission denied

I had forgotten about this patch until bde reminded me.  He reports
using it without problems for over a year.

PR:	45723
2004-06-08 06:23:23 +00:00
..
alpha Use unions to avoid violating C99 strict aliasing rules. 2004-03-16 20:42:02 +00:00
amd64 Fix Yet Another 16 byte stack alignment bug. Thankfully, this one is 2004-03-31 07:27:31 +00:00
arm Import the FreeBSD/arm libc bits. 2004-05-14 12:04:31 +00:00
compat-43 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
db Simplify mpool_get() and mpool_write() by using pread() and pwrite() 2004-01-20 00:40:35 +00:00
gdtoa Updated manh shift constant type to 'ULL' for PPC to fix 2004-01-21 04:51:50 +00:00
gen In fts_build(), if we try to chdir and fail (e.g. due to lack of search 2004-06-08 06:23:23 +00:00
gmon For amd64, explicitly compile mcount.po, rather than copying mcount.o. We 2004-05-18 22:49:15 +00:00
i386 Remove the code and an associated comment for gcc 1.x compatibility 2004-02-16 10:03:02 +00:00
ia64 Fix some aliasing problems. 2004-02-16 10:02:40 +00:00
include When a dynamic NSS module is built and linked against a thread 2004-03-30 15:56:15 +00:00
locale Buffer partial wide characters more efficiently: instead of storing the 2004-05-27 10:54:34 +00:00
net use source address as a hint to determine destination address 2004-06-02 06:49:36 +00:00
nls Remove incomplete support for running FreeBSD userland on old NetBSD kernels 2003-10-29 10:45:01 +00:00
posix1e Adjust for brain outage that affected the previous commit. 2004-01-06 20:29:40 +00:00
powerpc makecontext lib call. 2004-03-02 06:22:24 +00:00
quad libc_r wasn't so tied to libc for 22 months. 2002-11-18 09:50:57 +00:00
regex mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
rpc Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror) 2004-03-05 08:10:19 +00:00
softfloat Import the softfloat emulation library, needed for FreeBSD/arm right now. 2004-05-14 12:13:06 +00:00
sparc64 Use unions to avoid violating C99 strict aliasing rules. 2004-03-16 20:42:02 +00:00
stdio Rename cantwrite() to prepwrite(). The latter is less confusing, 2004-06-08 05:45:48 +00:00
stdlib Define malloc_pageshift and malloc_minsize for arm. 2004-05-14 11:50:51 +00:00
stdtime Detect range errors when using the %s specifier. Previously, LONG_MAX 2003-11-17 04:19:15 +00:00
string Prepare to handle state-dependent encodings. This mainly involves not 2004-04-07 09:47:56 +00:00
sys Use ".In" to mark up C include file names. 2004-06-07 21:52:20 +00:00
uuid Remove stale DCE 1.1 pointers to the IBM site. The URLs aren't valid 2003-08-08 19:18:43 +00:00
xdr We use __arm__, not __arm32__. 2004-05-14 11:51:22 +00:00
yp Back out the `hiding' of strlcpy and strlcat. Several people 2003-05-01 19:03:14 +00:00
Makefile Import the FreeBSD/arm libc bits. 2004-05-14 12:04:31 +00:00