]> git.e2factory.org Git - e2factory.git/commitdiff
fetch-project: Fix absolute destination paths
authorTobias Ulmer <tu@emlix.com>
Fri, 6 Dec 2013 13:26:12 +0000 (14:26 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:17 +0000 (15:41 +0100)
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 <tu@emlix.com>
global/e2-fetch-project.lua

index 833ea45102de50eee8e2343de6ba327b13c83493..7e1752e379d6bc98a257855e31f26a42c54956db 100644 (file)
@@ -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)