From 061f8228f46147dcb595411e927d058dc2ceb0db Mon Sep 17 00:00:00 2001 From: Gabriel Baraldi Date: Thu, 19 Oct 2023 16:06:46 -0300 Subject: [PATCH] Don't make pkgimages global editable --- base/loading.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/loading.jl b/base/loading.jl index 25fe8144b71d6..27b7317639375 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -2488,7 +2488,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 | 0o333) + chmod(tmppath_so, filemode(path) & 0o777 | 0o331) end # prune the directory with cache files