RTEMS | rmdir does not handle dot-dot as specified by POSIX (#5071)

Loris Nardo (@loris.nardo) gitlab at rtems.org
Sun Jul 28 05:29:44 UTC 2024




Loris Nardo commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5071#note_110096


This issue has been created because the testcase fstest/fsrmdirparent fails.

I've checked better what happens: in the testcase the `rmdir` fails with `EBUSY`, this is because in the testcase it is trying to remove the current working directory; however if I change the testcase to remove a different dot-dot folder, the testcase passes.

The different error is just because the condition for `EBUSY` is checked before. The dot-dot path is treated as valid and then fails inside `rmnod_h` with the correct error code.

If it is fine I can fix the testcase

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5071#note_110096
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240728/a18aaed4/attachment.htm>


More information about the bugs mailing list