#4674: readdir skips entries after unlink
-----------------------------+----------------------------
Reporter: Alexandre Oliva | Owner: Needs Funding
Type: defect | Status: assigned
Priority: normal | Milestone: 6.1
Component: fs | Version: 6
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: |
-----------------------------+----------------------------
Comment (by Alexandre Oliva):
The problem, much as I can tell, is that unlink "moves" the readdir
"offset", so that b gets skipped in the unlinking loop. It shouldn't be
skipped, and the loop should unlink every entry, leaving the directory
empty. The bug is that it doesn't, and every other entry survives because
unlinking causes it to be skipped.
--
Ticket URL: <http://devel.rtems.org/ticket/4674#comment:12>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs