freebsd-dev/lib/libc/gen
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
..
__xuname.c
_pthread_stubs.c
_rand48.c
_spinlock_stub.c
_thread_init.c
alarm.3
alarm.c
arc4random.3
arc4random.c
assert.c
basename.3
basename.c
check_utility_compat.3
check_utility_compat.c
clock.3
clock.c
closedir.c
confstr.3
confstr.c
crypt.c
ctermid.3
ctermid.c
daemon.3
daemon.c
devname.3
devname.c
directory.3
dirname.3
dirname.c
disklabel.c
dladdr.3
dlfcn.c
dlfunc.c
dlinfo.3
dllockinit.3
dlopen.3 Fix the ordering in the description of the dlsym() lookup procedure to 2004-06-03 10:13:26 +00:00
drand48.c
erand48.c
err.3
err.c
errlst.c
errno.c
exec.3
exec.c
fmtcheck.3
fmtcheck.c When *printf() and *scanf() are compiled without floating-point 2004-05-02 10:55:05 +00:00
fmtmsg.3
fmtmsg.c
fnmatch.3
fnmatch.c
fpclassify.3
fpclassify.c
frexp.3
fstab.c
ftok.3
ftok.c Change the signature of ftok from (const char *, char) to (const char *, int) 2004-06-01 06:53:07 +00:00
fts-compat.c 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
fts-compat.h Fix some^Wseveral style bugs from last commit. 2004-05-12 21:38:39 +00:00
fts.3
fts.c 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
getbootfile.3
getbootfile.c
getbsize.3
getbsize.c
getcap.3
getcap.c
getcontext.3
getcwd.3
getcwd.c
getdiskbyname.3
getdomainname.3
getdomainname.c
getfsent.3
getgrent.3 getgrent() and friends should set errno if there is an error. 2004-05-17 22:15:49 +00:00
getgrent.c getgrent() and friends should set errno if there is an error. 2004-05-17 22:15:49 +00:00
getgrouplist.3
getgrouplist.c
gethostname.3
gethostname.c
getloadavg.3
getloadavg.c
getlogin.c
getmntinfo.3
getmntinfo.c
getnetgrent.3
getnetgrent.c
getobjformat.3
getobjformat.c
getosreldate.3
getosreldate.c
getpagesize.3
getpagesize.c
getpass.3
getpeereid.3
getpeereid.c
getprogname.3
getprogname.c
getpwent.3 POSIX prohibits any library function from setting errno to 0. 2004-05-17 18:27:05 +00:00
getpwent.c POSIX prohibits any library function from setting errno to 0. 2004-05-17 18:27:05 +00:00
getttyent.3
getttyent.c
getusershell.3
getusershell.c
getvfsbyname.3
getvfsbyname.c
glob.3
glob.c
initgroups.3
initgroups.c
isatty.c
isgreater.3
jrand48.c
lcong48.c
ldexp.3
lockf.3 Clarify and extend paragraphs on interoperation 2004-05-17 23:09:10 +00:00
lockf.c
lrand48.c
makecontext.3
Makefile.inc
modf.3
mrand48.c
msgctl.3
msgget.3
msgrcv.3
msgsnd.3
nice.3
nice.c
nlist.3
nlist.c
nrand48.c
ntp_gettime.c
opendir.c
pause.3
pause.c
pmadvise.c
popen.3
popen.c
posixshm.c
pselect.3
pselect.c
psignal.3
psignal.c
pw_scan.c
pw_scan.h
pwcache.3
pwcache.c
raise.3
raise.c
rand48.3
rand48.h
readdir.c
readpassphrase.3
readpassphrase.c
rewinddir.c
rfork_thread.3
scandir.3
scandir.c
seed48.c
seekdir.c
sem_destroy.3
sem_getvalue.3
sem_init.3
sem_open.3
sem_post.3
sem_wait.3
sem.c
semctl.c
setdomainname.c
sethostname.c
setjmp.3
setjmperr.c
setmode.3
setmode.c
setproctitle.3
setproctitle.c
setprogname.c
shm_open.3
siginterrupt.3
siginterrupt.c
siglist.c
signal.3 Finally document the option to avoid zombie creation 2004-06-07 11:01:39 +00:00
signal.c
signbit.3
signbit.c
sigsetops.3
sigsetops.c
sleep.3
sleep.c
srand48.c
statvfs.3
statvfs.c
stringlist.3
stringlist.c
strtofflags.3
strtofflags.c
swapcontext.c
sysconf.3
sysconf.c
sysctl.3
sysctl.c
sysctlbyname.c
sysctlnametomib.c
syslog.3
syslog.c Remove a trailing newline, to behave as documented in syslog(3): 2004-05-10 17:12:52 +00:00
tcgetpgrp.3
tcsendbreak.3
tcsetattr.3
tcsetpgrp.3
telldir.c
telldir.h
termios.c
time.3
time.c
times.3
times.c
timezone.3
timezone.c
ttyname.3
ttyname.c
ttyslot.c
tzset.3
ualarm.3 o fix a sentence to match with the synopsis [1] 2004-05-09 11:11:21 +00:00
ualarm.c
ucontext.3
ulimit.3
ulimit.c
uname.3
uname.c
unvis.3
unvis.c
usleep.3
usleep.c
utime.3
utime.c
valloc.3
valloc.c
vis.3
vis.c
wait3.c
wait.c
waitpid.c
wordexp.3
wordexp.c