Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes: > We could side-step all of this, of course, if we simply did this: > > euid = getuid(); > if (euid == ROOT_UID) > euid = git_env_ulong("SUDO_UID", euid); Yes, that is not "side-stepping" at all. It is "we already have a function that knows how to use strto*l() correctly" ;-) Very good suggestion. Thanks.