seteuid.2: glibc implements seteuid() calling setresuid(), not setreuid()
Analogously with set*gid().
This has been the case since more than two decades, e.g.:
commit
eae59a5681a6 glibc-2.3.2-793-geae59a5681a6
Commit: Ulrich Drepper <drepper@redhat.com>
CommitDate: Sun Jun 8 22:37:53 2003 +0000
Update.
* sysdeps/unix/sysv/linux/seteuid.c (seteuid): Use setresuid32
syscall directly if possible. If __ASSUME_SETRESUID_SYSCALL is
defined drop compatibility code.
[...]
The change in implementation from setreuid()/setregid() is also
already mentioned two paragraphs earlier in the same man page.
Fixes: a36b2bb0eca4 ("seteuid.2: seteuid() and setegid() are implemented as library functions")
Fixes: 8554dd0324b0 ("seteuid.2: tfix")
Signed-off-by: Štěpán Němec <stepnem@smrk.net>
Signed-off-by: Alejandro Colomar <alx@kernel.org>