From dfbd234c7f11ce1aaa49937f1313a8214505c735 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 28 Jul 2014 15:24:17 +0100 Subject: [PATCH] git-cache-proxy: housekeeping: check errno value from stat after deletion --- scripts/git-cache-proxy | 2 ++ 1 file changed, 2 insertions(+) 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"; } } }; -- 2.30.2