From bd4efaeb17ea52d86f2fa2de4e9c4c18635ad668 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Thu, 2 Apr 2009 14:18:10 +0200 Subject: [PATCH] quote template argument for mktemp, as a quick fix Signed-off-by: Gordon Hecker --- generic/e2lib.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") -- 2.39.5