Re: [RFC PATCH] git-compat-util: avoid failing dir ownership checks if running priviledged
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 26, 2022, 21:10 UTC
- Message-ID
- <xmqqilqvpn3u.fsf@gitster.g>
- In-Reply-To
- <CAPUEspi_mX1xj1Nu2DuE83U9jB6oeRd=8FDPgGXbSC76mGHroQ@mail.gmail.com>
Carlo Arenas <carenas@gmail.com> writes:
> Agree with you that using strtol is better, but the added checks > and logic make it more complicated and go against the assumption > made in the commit message that the environment CAN'T be tampered > with.
I think we require strto*l() here, to relieve us from worrying about "is int large enough?" question.