mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-25 22:00:32 +00:00
2912096f6e
This patch changes the 'Single_file_system' to return NO_PERM only if the to-be-unlinked file corresponds to the single file. This way, a <rom> co-mounted with a <ram> file-system does not stand in the way of unlinking files from the <ram>. The concrete symptom occurred the following scenario: <vfs> <dir name="home"> <ram/> <rom name="..."/> </dir> </vfs> The following sequence of commands wrongly resulted in "Operation not permitted": $ mkdir -p /home/a/b/c $ rm -f /home/a/b/c/d In this case, rm should not fail (unlink should return ENOENT) Fixes #3690