diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-10-26 21:11:28 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-12-04 15:08:21 +0000 |
commit | 273c1f75a88afa6ad22d6337263ece47192d67a1 (patch) | |
tree | 99478048d349ae0bc366fe4414e7a663f6a1e376 | |
parent | 78c628643765f6f028c760f9c40986eec4e3c6b8 (diff) | |
download | acf-lib-273c1f75a88afa6ad22d6337263ece47192d67a1.tar.bz2 acf-lib-273c1f75a88afa6ad22d6337263ece47192d67a1.tar.xz |
Fix exception for broken symlink
(cherry picked from commit a834fd1c09f1a0d8c03ba96268d6059b1014b196)
-rw-r--r-- | fs.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -178,7 +178,7 @@ function find_files_as_array ( what, where, follow, t ) local link if follow and 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 |