summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs.lua b/fs.lua
index 6f89593..b1c9bcc 100644
--- a/fs.lua
+++ b/fs.lua
@@ -178,7 +178,7 @@ function find_files_as_array ( what, where, follow, t )
local link
if follow and fs.is_link(where) then
link = posix.readlink(where)
- if not string.find(link, "^/") then
+ if link and not string.find(link, "^/") then
link = posix.dirname(where).."/"..link
end
end