Skip to content

Commit

Permalink
Take compression config into account in permission config
Browse files Browse the repository at this point in the history
  • Loading branch information
zauguin committed Apr 27, 2024
1 parent 5dfcf37 commit dc14435
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/luaotfload-diagnostics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,12 @@ end

local function init_desired_permissions ()
local paths = config.luaotfload.paths
local compress_db = config.luaotfload.db.compress
return {
{ "d", {"r","w"}, function () return caches.getwritablepath ("", "") end },
{ "d", {"r","w"}, paths.prefix },
{ "f", {"r","w"}, paths.index_path_lua .. ".gz" },
{ "f", {"r","w"}, paths.index_path_luc },
{ "f", {"r","w"}, paths.index_path_lua .. (compress_db and ".gz" or "") },
{ "f", {"r","w"}, paths.index_path_luc .. (compress_db and ".gz" or "") },
{ "f", {"r","w"}, paths.lookup_path_lua },
{ "f", {"r","w"}, paths.lookup_path_luc },
}
Expand Down

0 comments on commit dc14435

Please sign in to comment.