From: Tobias Ulmer Date: Fri, 6 Dec 2013 13:26:12 +0000 (+0100) Subject: fetch-project: Fix absolute destination paths X-Git-Tag: e2factory-2.3.15rc1~302 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=50714ce48f32b7dfef6c1adae30078926760178c;p=e2factory.git fetch-project: Fix absolute destination paths Bug introduced in 6d3d6f5de9c9667c4e679909b2a34590a89c18bb on Thu Oct 31 21:29:36 2013 +0100. Didn't make it into a release. A testcase has been created for this problem. Signed-off-by: Tobias Ulmer --- diff --git a/global/e2-fetch-project.lua b/global/e2-fetch-project.lua index 833ea45..7e1752e 100644 --- a/global/e2-fetch-project.lua +++ b/global/e2-fetch-project.lua @@ -91,7 +91,7 @@ local function e2_fetch_project(arg) end -- Make destdir an absolute path. - if string.sub(p.destdir, 1) ~= "/" then + if string.sub(p.destdir, 1, 1) ~= "/" then rc, re = e2lib.cwd() if not rc then return false, e:cat(re)