Re: [PATCH] setfsgid.2: tfix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alex,

On 2/15/21 2:15 PM, Alejandro Colomar wrote:
> The type of fsgid is git_t, and not uid_t.  Fix it.

Cute. That mistake has been present for about 25 years!

Patch applied.

Thanks,

Michael

> ......
> 
> .../glibc$ grep_glibc_prototype setfsgid
> sysdeps/unix/sysv/linux/sys/fsuid.h:31:
> extern int setfsgid (__gid_t __gid) __THROW;
> .../glibc$
> 
> Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx>
> ---
>  man2/setfsgid.2 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/man2/setfsgid.2 b/man2/setfsgid.2
> index e2d4d09f3..3fd22f3a5 100644
> --- a/man2/setfsgid.2
> +++ b/man2/setfsgid.2
> @@ -36,7 +36,7 @@ setfsgid \- set group identity used for filesystem checks
>  .nf
>  .B #include <sys/fsuid.h>
>  .PP
> -.BI "int setfsgid(uid_t " fsgid );
> +.BI "int setfsgid(gid_t " fsgid );
>  .fi
>  .SH DESCRIPTION
>  On Linux, a process has both a filesystem group ID and an effective group ID.
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux