Skip to content

Commit

Permalink
Don't recurse into links when setting permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt authored and staticfloat committed Jan 20, 2022
1 parent b90e6dd commit ed87f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UserNamespaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function chmod_recursive(root::String, perms, use_sudo::Bool)
rethrow(e)
end
end
if isdir(path)
if isdir(path) && !islink(path)
chmod_recursive(path, perms, use_sudo)
end
end
Expand Down

2 comments on commit ed87f07

@staticfloat
Copy link
Owner

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/52860

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.2.0 -m "<description of version>" ed87f079edb1cef60c32ad5fbfbcd38c70a1314a
git push origin v1.2.0

Please sign in to comment.