From d6d2c94191074256a7892f932d91493e6e9bab0c Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Thu, 16 Jan 2014 18:07:34 +0100 Subject: [PATCH] Check whether symlink exists, not the destination Signed-off-by: Tobias Ulmer --- local/e2build.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local/e2build.lua b/local/e2build.lua index 5bc600a..3d59388 100644 --- a/local/e2build.lua +++ b/local/e2build.lua @@ -77,7 +77,7 @@ local function linklast(info, r, return_flags) return false, e:cat(re) end - if e2lib.exists(lnk) then + if e2lib.stat(lnk, false) then e2lib.unlink(lnk) -- ignore errors, symlink will catch it end -- 2.39.5