Re: [PATCH 30/31] hooks: fix a TOCTOU in "did we run a hook?" heuristic
On 28/05/21 19.11, Ævar Arnfjörð Bjarmason wrote:
Show 7 quoted lines
> 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