aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/setreuid.2
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/setreuid.2')
-rw-r--r--lib/libc/sys/setreuid.29
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/sys/setreuid.2 b/lib/libc/sys/setreuid.2
index fd5d636c6eed..cd8b7187a58e 100644
--- a/lib/libc/sys/setreuid.2
+++ b/lib/libc/sys/setreuid.2
@@ -63,17 +63,16 @@ the real user ID, then the saved user ID will be set to the effective user ID.
.Pp
The
.Fn setreuid
-function has been used to swap the real and effective user IDs
+system call has been used to swap the real and effective user IDs
in set-user-ID programs to temporarily relinquish the set-user-ID value.
This purpose is now better served by the use of the
-.Fn seteuid
-function (see
-.Xr setuid 2 ) .
+.Xr seteuid 2
+system call.
.Pp
When setting the real and effective user IDs to the same value,
the standard
.Fn setuid
-function is preferred.
+system call is preferred.
.Sh RETURN VALUES
.Rv -std setreuid
.Sh ERRORS