Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#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


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 Changed 14 years ago by bird

Keywords: opendir added
Status: newassigned

There is more to this than chdir(), the dirfd() macro is not returning any valid filehandle yet because of 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 :/

comment:2 Changed 14 years ago by bird

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 Changed 14 years ago by bird

Resolution: fixed
Status: assignedclosed

Fixed in changeset [2497].

comment:4 Changed 14 years ago by bird

Version: 0.6
Note: See TracTickets for help on using tickets.