]> git.e2factory.org Git - e2factory.git/commitdiff
sha1sum: close pipe
authorGordon Hecker <gh@emlix.com>
Tue, 17 Nov 2009 13:24:50 +0000 (14:24 +0100)
committerGordon Hecker <gh@emlix.com>
Tue, 17 Nov 2009 13:24:50 +0000 (14:24 +0100)
Signed-off-by: Gordon Hecker <gh@emlix.com>
generic/e2lib.lua

index 1418a459fe226b132149ab9f7f0e35244a28378a..e09f919a3cfe7499d930851ebbe52e8fafa5b7bb 100644 (file)
@@ -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)