setfsgid.2, setfsuid.2: Fix note about errors from the syscall wrapper

See sysdeps/unix/sysv/linux/i386/setfsuid.c in glibc-2.2.1.
(This code is not present in modern glibc anymore.)

Signed-off-by: Jann Horn <jannh@google.com>
This commit is contained in:
Jann Horn 2016-07-01 16:14:09 +02:00 committed by Michael Kerrisk
parent 658a3012f8
commit de61071a21
2 changed files with 8 additions and 4 deletions

View File

@ -77,8 +77,10 @@ This system call is present in Linux since version 1.2.
is Linux-specific and should not be used in programs intended
to be portable.
.SH NOTES
When glibc determines that the argument is not a valid group ID,
it will return \-1 and set \fIerrno\fP to
When old versions of glibc determine that the argument can not be
passed to the kernel without integer truncation (because the kernel
is old and does not support 32-bit group IDs),
they will return \-1 and set \fIerrno\fP to
.B EINVAL
without attempting
the system call.

View File

@ -77,8 +77,10 @@ This system call is present in Linux since version 1.2.
is Linux-specific and should not be used in programs intended
to be portable.
.SH NOTES
When glibc determines that the argument is not a valid user ID,
it will return \-1 and set \fIerrno\fP to
When old versions of glibc determine that the argument can not be
passed to the kernel without integer truncation (because the kernel
is old and does not support 32-bit user IDs),
they will return \-1 and set \fIerrno\fP to
.B EINVAL
without attempting
the system call.