From d8cfc69bf5668866857517063e92a0a642489f6e Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Tue, 17 Nov 2009 14:24:50 +0100 Subject: [PATCH] sha1sum: close pipe Signed-off-by: Gordon Hecker --- generic/e2lib.lua | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.5