From: Gordon Hecker Date: Thu, 2 Apr 2009 12:18:10 +0000 (+0200) Subject: quote template argument for mktemp, as a quick fix X-Git-Tag: e2factory-2.3.1pre1~45 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=bd4efaeb17ea52d86f2fa2de4e9c4c18635ad668;p=e2factory.git quote template argument for mktemp, as a quick fix Signed-off-by: Gordon Hecker --- diff --git a/generic/e2lib.lua b/generic/e2lib.lua index e99a040..6dfc6d9 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -1256,7 +1256,7 @@ function e2lib.mktempfile(template) template = string.format("%s/e2tmp.%d.XXXXXXXX", e2lib.tmpdir, e2util.getpid()) end - local cmd = string.format("mktemp %s", template) + local cmd = string.format("mktemp '%s'", template) local mktemp = io.popen(cmd, "r") if not mktemp then e2lib.bomb("can't mktemp") @@ -1297,7 +1297,7 @@ function e2lib.mktempdir(template) template = string.format("%s/e2tmp.%d.XXXXXXXX", e2lib.tmpdir, e2util.getpid()) end - local cmd = string.format("mktemp -d %s", template) + local cmd = string.format("mktemp -d '%s'", template) local mktemp = io.popen(cmd, "r") if not mktemp then e2lib.bomb("can't mktemp")