From: Ian Jackson Date: Mon, 28 Jul 2014 14:24:17 +0000 (+0100) Subject: git-cache-proxy: housekeeping: check errno value from stat after deletion X-Git-Tag: debian/4.3.1~4 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=commitdiff_plain;h=dfbd234c7f11ce1aaa49937f1313a8214505c735 git-cache-proxy: housekeeping: check errno value from stat after deletion --- diff --git a/scripts/git-cache-proxy b/scripts/git-cache-proxy index 0c6ba55..b0c9502 100755 --- a/scripts/git-cache-proxy +++ b/scripts/git-cache-proxy @@ -423,6 +423,8 @@ sub housekeeping () { logm 'info', "problem deleting: $file: $message"; } die "$dir: problem deleting file(s)\n"; + } elsif ($! != ENOENT) { + die "$tdir: cannot stat after deletion: $!\n"; } } };