Skip to contentSkip to conversation

setfsgid.2: tfix

PATCH In review Alejandro Colomar 2 participants 2 messages Feb 15, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 setfsgid.2: tfix

The type of fsgid is git_t, and not uid_t. Fix it.

......

.../glibc$ grep_glibc_prototype setfsgid
sysdeps/unix/sysv/linux/sys/fsuid.h:31:
extern int setfsgid (__gid_t __gid) __THROW;
.../glibc$

---
 man2/setfsgid.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man2/setfsgid.2 +1 -1
index e2d4d09f3..3fd22f3a5 100644
@@ -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.
Signature · 1 line
2.30.0
#1 lore raw

Hi Alex,

Quoted 1 line · Alejandro Colomar

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

Quoted 26 lines

......

.../glibc$ grep_glibc_prototype setfsgid
sysdeps/unix/sysv/linux/sys/fsuid.h:31:
extern int setfsgid (__gid_t __gid) __THROW;
.../glibc$

---
 man2/setfsgid.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man2/setfsgid.2 +1 -1
index e2d4d09f3..3fd22f3a5 100644
@@ -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.
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/