From: Stéphane Glondu Date: Fri, 9 Aug 2019 05:16:46 +0000 (+0200) Subject: dgit: Fix on NFS (avoid leaking an open file in a directory to rm) X-Git-Tag: archive/debian/9.7~8 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=a4e8e4dbccd6fd64f7e31cf7527e9a8bd0bfe806;p=dgit.git dgit: Fix on NFS (avoid leaking an open file in a directory to rm) The file debian/source/format was open by "dgit fetch" but never closed, causing failure to remove the extracted tree on NFS. Closes: #933827 Signed-off-by: Stéphane Glondu Signed-off-by: Ian Jackson --- diff --git a/dgit b/dgit index 4bd2e053..0775a7c1 100755 --- a/dgit +++ b/dgit @@ -4024,6 +4024,7 @@ sub get_source_format () { } $_ = ; F->error and confess "$!"; + close F; chomp; return ($_, \%options); }