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

[Filesystem]: rm(; recursive=true) should ignore UV_EACCES #47668

Merged
merged 1 commit into from
Nov 24, 2022

Conversation

staticfloat
Copy link
Member

The command-line program rm has no problem deleting an empty directory that we do not have listing permissions on, so we should follow suit.

Example:

mktempdir() do dir
    mkpath("$(dir)/foo")
    chmod("$(dir)/foo", 0o200)
    rm(dir; recursive=true)
end

Copy link
Member

@maleadt maleadt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! I propose we backport this, at least to 1.9?

@maleadt maleadt added the backport 1.9 Change should be backported to release-1.9 label Nov 22, 2022
The command-line program `rm` has no problem deleting an empty directory
that we do not have listing permissions on, so we should follow suit.

Example:

```
mktempdir() do dir
    mkpath("$(dir)/foo")
    chmod("$(dir)/foo", 0o200)
    rm(dir; recursive=true)
end
```
@maleadt maleadt added the backport 1.8 Change should be backported to release-1.8 label Nov 24, 2022
@maleadt
Copy link
Member

maleadt commented Nov 24, 2022

win32 and ppc failures unrelated, and also happen on master.

@maleadt maleadt merged commit d0a211a into master Nov 24, 2022
@maleadt maleadt deleted the sf/fix_rm_permissions branch November 24, 2022 15:42
KristofferC pushed a commit that referenced this pull request Nov 28, 2022
The command-line program `rm` has no problem deleting an empty directory
that we do not have listing permissions on, so we should follow suit.

Example:

```
mktempdir() do dir
    mkpath("$(dir)/foo")
    chmod("$(dir)/foo", 0o200)
    rm(dir; recursive=true)
end
```

(cherry picked from commit d0a211a)
KristofferC pushed a commit that referenced this pull request Nov 28, 2022
The command-line program `rm` has no problem deleting an empty directory
that we do not have listing permissions on, so we should follow suit.

Example:

```
mktempdir() do dir
    mkpath("$(dir)/foo")
    chmod("$(dir)/foo", 0o200)
    rm(dir; recursive=true)
end
```

(cherry picked from commit d0a211a)
@KristofferC KristofferC mentioned this pull request Dec 14, 2022
26 tasks
KristofferC pushed a commit that referenced this pull request Dec 14, 2022
The command-line program `rm` has no problem deleting an empty directory
that we do not have listing permissions on, so we should follow suit.

Example:

```
mktempdir() do dir
    mkpath("$(dir)/foo")
    chmod("$(dir)/foo", 0o200)
    rm(dir; recursive=true)
end
```

(cherry picked from commit d0a211a)
@KristofferC KristofferC removed the backport 1.8 Change should be backported to release-1.8 label Dec 16, 2022
@KristofferC KristofferC removed the backport 1.9 Change should be backported to release-1.9 label Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants