Skip to content

Commit ed87f07

Browse files
maleadtstaticfloat
authored andcommitted
Don't recurse into links when setting permissions.
1 parent b90e6dd commit ed87f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UserNamespaces.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function chmod_recursive(root::String, perms, use_sudo::Bool)
2828
rethrow(e)
2929
end
3030
end
31-
if isdir(path)
31+
if isdir(path) && !islink(path)
3232
chmod_recursive(path, perms, use_sudo)
3333
end
3434
end

0 commit comments

Comments
 (0)