summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-10-26 21:11:28 +0000
committerTed Trask <ttrask01@yahoo.com>2012-12-04 15:28:06 +0000
commitdc153b86b19134d5335a51ddb329122a912fde03 (patch)
treea69fd87903b425f47d5e9be3e976dd4318093bcb
parent4d2b7920e4e5b453e0ba85076beaabe288e4f4b7 (diff)
downloadacf-lib-dc153b86b19134d5335a51ddb329122a912fde03.tar.bz2
acf-lib-dc153b86b19134d5335a51ddb329122a912fde03.tar.xz
Fix exception for broken symlink
(cherry picked from commit a834fd1c09f1a0d8c03ba96268d6059b1014b196)
-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