#24 closed defect (fixed)
libc: fts crashes because it's still using chdir()
Reported by: | bird | Owned by: | bird |
---|---|---|---|
Priority: | normal | Milestone: | libc-0.6.1 |
Component: | libc-frontend | Version: | 0.6 |
Severity: | normal | Keywords: | libc fts fchdir opendir |
Cc: |
Description
The various fts APIs when enumerating directories because HAVE_FCHDIR isn't defined and it will end up using chdir() on directory file handles.
Change History (4)
comment:1 by , 19 years ago
Keywords: | opendir added |
---|---|
Status: | new → assigned |
comment:2 by , 19 years ago
It turned out just to be used in one place, so it's fixed by adding a HAVE_DIRFD. However I put back all the HAVE_FCHDIR stuff for when we do simpler backends which doesn't implement fchdir.
comment:3 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in changeset [2497].
comment:4 by , 19 years ago
Version: | → 0.6 |
---|
Note:
See TracTickets
for help on using tickets.
There is more to this than chdir(), the dirfd() macro is not returning any valid filehandle yet because of ticket #14 (http://svn.netlabs.org/libc/ticket/14) which deals with reimplementing opendir() and friends. So, the correct solution here is to restore the solution with keeping that path around. too bad :/