From: Bagas Sanjaya Date: Fri, 28 May 2021 12:48:06 GMT Subject: Re: [PATCH 30/31] hooks: fix a TOCTOU in "did we run a hook?" heuristic Message-ID: In-Reply-To: On 28/05/21 19.11, Ævar Arnfjörð Bjarmason wrote: > Let's also change this for the push-to-checkout hook. Now instead of > checking if the hook exists and either doing a push to checkout or a > push to deploy we'll always attempt a push to checkout. If the hook > doesn't exist we'll fall back on push to deploy. The same behavior as > before, without the TOCTOU race. See 0855331941b (receive-pack: > support push-to-checkout hook, 2014-12-01) for the introduction of the > previous behavior. What is TOCTOU? I never hear this term before. -- An old man doll... just what I always wanted! - Clara