From 385b586265384b65e657bd796b9d3853405a9047 Mon Sep 17 00:00:00 2001 From: Gabriel Baraldi Date: Wed, 28 Dec 2022 14:32:05 -0300 Subject: [PATCH 1/2] Change permissions of pkgimgs --- base/loading.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/loading.jl b/base/loading.jl index 06ba6e733b6d7..4608ae931f7e2 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -2084,7 +2084,7 @@ function compilecache(pkg::PkgId, path::String, internal_stderr::IO = stderr, in # Ensure that the user can execute the `.so` we're generating # Note that on windows, `filemode(path)` typically returns `0o666`, so this # addition of the execute bit for the user is doubly needed. - chmod(tmppath_so, filemode(path) & 0o777 | 0o300) + chmod(tmppath_so, filemode(path) & 0o777 | 0o755) end # prune the directory with cache files From f758151fec9b5c290f40f8099bac01a44a281be1 Mon Sep 17 00:00:00 2001 From: Gabriel Baraldi Date: Wed, 28 Dec 2022 14:45:33 -0300 Subject: [PATCH 2/2] Update base/loading.jl Co-authored-by: Elliot Saba --- base/loading.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/loading.jl b/base/loading.jl index 4608ae931f7e2..f7ff11f1ae165 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -2084,7 +2084,7 @@ function compilecache(pkg::PkgId, path::String, internal_stderr::IO = stderr, in # Ensure that the user can execute the `.so` we're generating # Note that on windows, `filemode(path)` typically returns `0o666`, so this # addition of the execute bit for the user is doubly needed. - chmod(tmppath_so, filemode(path) & 0o777 | 0o755) + chmod(tmppath_so, filemode(path) & 0o777 | 0o333) end # prune the directory with cache files