From: Gordon Hecker Date: Tue, 17 Nov 2009 13:24:50 +0000 (+0100) Subject: sha1sum: close pipe X-Git-Tag: e2factory-2.3.3rc1~22 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=d8cfc69bf5668866857517063e92a0a642489f6e;p=e2factory.git sha1sum: close pipe Signed-off-by: Gordon Hecker --- diff --git a/generic/e2lib.lua b/generic/e2lib.lua index 1418a45..e09f919 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -1708,6 +1708,7 @@ function e2lib.sha1sum(path) return nil, new_error(msg) end local out, msg = p:read("*l") + p:close() local sha1, file = out:match("(%S+) (%S+)") if type(sha1) ~= "string" then return nil, new_error(msg)