diff options
author | 2021-10-16 02:41:38 -0300 | |
---|---|---|
committer | 2021-10-16 17:08:29 -0300 | |
commit | f3001185bb91c4595ef1bde15e537c016edbd2a1 (patch) | |
tree | bb2b0985fa1fd58ecc3682214feb80f63eb5ceff /etc/profile-a-l | |
parent | util.c: remove tty comment from get_group_id (diff) | |
download | firejail-f3001185bb91c4595ef1bde15e537c016edbd2a1.tar.gz firejail-f3001185bb91c4595ef1bde15e537c016edbd2a1.tar.zst firejail-f3001185bb91c4595ef1bde15e537c016edbd2a1.zip |
util.c: fix return type of get_group_id
gr_gid is of type gid_t (not uid_t). From grp.h(0p) of POSIX.1-2017:
> DESCRIPTION
>
> The <grp.h> header shall declare the group structure, which shall
> include the following members:
>
> char *gr_name The name of the group.
> gid_t gr_gid Numerical group ID.
> char **gr_mem Pointer to a null-terminated array of character
> pointers to member names.
>
> The <grp.h> header shall define the gid_t and size_t types as
> described in <sys/types.h>.
Note: The callers already store the result in gid_t variables.
First caused by commit dc3564b18 ("fixes", 2016-03-09).
Diffstat (limited to 'etc/profile-a-l')
0 files changed, 0 insertions, 0 deletions