Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rmdir() to release possible directory lock prior to removing directory #46027

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dennisverspuij
Copy link

As described in this Nextcloud community issue some storage systems (such as VirtualBox shared folders) may lock a directory when traversing it using opendir() or a DirectoryIterator. This patch fixes Local::rmdir() to release such locks prior to removing a directory recursively, avoiding failure to do so with 'Text file busy" warnings.

This PR replaces 45967 I messed up, sorry for that.

@solracsf solracsf added this to the Nextcloud 30 milestone Jun 21, 2024
@solracsf solracsf added the 3. to review Waiting for reviews label Jun 21, 2024
@solracsf

This comment was marked as resolved.

…rior to deleting a directory, to avoid e.g. "Text file busy" error with VirtualBox shared folder storage

Signed-off-by: Dennis Verspuij <6680484+dennisverspuij@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants