]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
setfsgid.2, setfsuid.2: Fix note about errors from the syscall wrapper
authorJann Horn <jannh@google.com>
Fri, 1 Jul 2016 14:14:09 +0000 (16:14 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 1 Jul 2016 22:09:30 +0000 (00:09 +0200)
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>
man2/setfsgid.2
man2/setfsuid.2

index d1d021dae05415a1d4b78a1c59368640d66611f8..910b3fd2a936558faafd9d254bbb310528ea2f2d 100644 (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.
index 57b125ed25ec048ef796f6389ce65c452117c841..08735df77905e0e3d0623c15eed01b4d98b84c2a 100644 (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.