Open rite opened 3 months ago
The issue can be reproduced by executing run/bash with commit 6e4a5ce and issuing the following bash command:
run/bash
bash-4.4# mkdir -p fatfs/test; echo "world" > fatfs/test/hello; rm -r fatfs/test/ (null): cannot remove 'fatfs/test/': Operation not permitted
It works without trailing slash:
bash-4.4# mkdir -p fatfs/test; echo "world" > fatfs/test/hello; rm -r fatfs/test
...and it also works with or without trailing slash using the ramfs:
bash-4.4# mkdir -p tmp/test; echo "world" > tmp/test/hello; rm -r tmp/test bash-4.4# mkdir -p tmp/test; echo "world" > tmp/test/hello; rm -r tmp/test
This issue reminds me of #2686, but it seems to be specific to the fatfs VFS-plugin.
The issue can be reproduced by executing
run/bash
with commit 6e4a5ce and issuing the following bash command:It works without trailing slash:
...and it also works with or without trailing slash using the ramfs: