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
..
2002-12-27 12:15:40 +00:00
2002-12-18 10:13:54 +00:00
2003-09-10 19:24:35 +00:00
2003-07-01 12:30:03 +00:00
2003-06-01 19:19:59 +00:00
2003-02-08 20:37:55 +00:00
2003-04-07 12:55:00 +00:00
2002-12-04 15:47:41 +00:00
2003-02-24 22:55:33 +00:00
2002-12-27 12:15:40 +00:00
2003-09-10 19:24:35 +00:00
2003-06-01 19:19:59 +00:00
2002-12-18 10:13:54 +00:00
2002-12-19 09:40:28 +00:00
2003-01-04 00:15:15 +00:00
2002-12-18 10:13:54 +00:00
2002-12-19 09:40:28 +00:00
2002-12-27 12:15:40 +00:00
2002-12-19 09:40:28 +00:00
2003-02-23 00:24:03 +00:00
2003-02-24 22:53:26 +00:00
2003-02-11 21:56:21 +00:00
2003-02-23 01:47:49 +00:00
2002-11-17 08:54:29 +00:00
2002-12-19 09:40:28 +00:00
2002-12-04 15:47:41 +00:00