diff options
-rw-r--r-- | src/luaotfload-database.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua index 2bce001..cc8549e 100644 --- a/src/luaotfload-database.lua +++ b/src/luaotfload-database.lua @@ -2166,7 +2166,11 @@ local filter_out_pwd = function (dirs) for i = 1, #dirs do --- better safe than sorry local dir = path_normalize (lpegmatch (stripslashes, dirs[i])) - if not (dir == "." or dir == pwd) then + if dir == "." or dir == pwd then + logreport ("both", 3, "db", + "Path ā%sā matches $PWD (ā%sā), skipping.", + dir, pwd) + else result[#result+1] = dir end end |