From 5bf67402f6f9eb44a6d59ccddfd49d2bcb5f4e68 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Fri, 24 Jan 2014 17:14:30 +0100 Subject: [PATCH] Only 6 X are replaced in by mktemp... functions, shorten Signed-off-by: Tobias Ulmer --- generic/e2lib.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5