[RTEMS Project] #4674: readdir skips entries after unlink
RTEMS trac
trac at rtems.org
Thu Apr 13 04:32:39 UTC 2023
#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):
Hello, Zack,
Apologies for the late response.
The problem occurs when unlink is called during the iteration.
Consider adding e.g.:
unlink(direntp->d_name);
to the end of the loop, which should remove all subdirs,
and notice how it leaves every other entry behind.
--
Ticket URL: <http://devel.rtems.org/ticket/4674#comment:6>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list