summaryrefslogtreecommitdiffstats
path: root/man2
diff options
context:
space:
mode:
authorŠtěpán Němec <stepnem@smrk.net>2024-02-07 21:13:36 +0100
committerAlejandro Colomar <alx@kernel.org>2024-02-11 19:51:48 +0100
commit2427b384fdf11feb19e8b882ff1870fa00be2566 (patch)
tree96c05c3f6981adde97f329b040162c0fc57fd473 /man2
parente44ab23aba6705859910dc77e7bdbeebec0c5cb4 (diff)
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>
Diffstat (limited to 'man2')
-rw-r--r--man2/seteuid.24
1 files changed, 2 insertions, 2 deletions
diff --git a/man2/seteuid.2 b/man2/seteuid.2
index 312ed1f9e..0eae04f79 100644
--- a/man2/seteuid.2
+++ b/man2/seteuid.2
@@ -117,9 +117,9 @@ On Linux,
and
.BR setegid ()
are implemented as library functions that call, respectively,
-.BR setreuid (2)
+.BR setresuid (2)
and
-.BR setregid (2).
+.BR setresgid (2).
.SH STANDARDS
POSIX.1-2008.
.SH HISTORY