From: Tobias Ulmer Date: Fri, 24 Jan 2014 16:14:30 +0000 (+0100) Subject: Only 6 X are replaced in by mktemp... functions, shorten X-Git-Tag: e2factory-2.3.15rc1~241 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=5bf67402f6f9eb44a6d59ccddfd49d2bcb5f4e68;p=e2factory.git Only 6 X are replaced in by mktemp... functions, shorten Signed-off-by: Tobias Ulmer --- diff --git a/generic/e2lib.lua b/generic/e2lib.lua index 5abb9ed..9df3616 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -1644,7 +1644,7 @@ function e2lib.mktempfile(template) local rc, re, errstring, tmpfile, tmpfd, tmpfo if not template then - template = string.format("%s/e2tmp.%d.XXXXXXXX", e2lib.globals.tmpdir, + template = string.format("%s/e2tmp.%d.XXXXXX", e2lib.globals.tmpdir, e2lib.getpid()) end @@ -1700,7 +1700,7 @@ end function e2lib.mktempdir(template) local rc, errstring, tmpdir if not template then - template = string.format("%s/e2tmp.%d.XXXXXXXX", e2lib.globals.tmpdir, + template = string.format("%s/e2tmp.%d.XXXXXX", e2lib.globals.tmpdir, e2lib.getpid()) end