]> git.e2factory.org Git - e2factory.git/commitdiff
bugfix: quote curl args
authorGordon Hecker <gh@emlix.com>
Wed, 24 Mar 2010 08:26:24 +0000 (09:26 +0100)
committerGordon Hecker <gh@emlix.com>
Mon, 3 May 2010 09:40:28 +0000 (11:40 +0200)
Signed-off-by: Gordon Hecker <gh@emlix.com>
generic/transport.lua

index fbcda6dfdd3e33f32e69ea19c72ccf9b510a289f..6af13a408f7d33d86068b46e2656573993c80434 100644 (file)
@@ -60,7 +60,7 @@ function fetch_file(surl, location, destdir, destname)
           u.transport == "https" then
                -- use special flags here
                local curlflags = "--create-dirs --silent --show-error --fail"
-               local args = string.format("%s %s/%s -o %s/%s",
+               local args = string.format("%s '%s/%s' -o '%s/%s'",
                                curlflags, u.url, location, destdir, tmpfile)
                rc, re = e2lib.curl(args)
                if not rc then