* Issue in man page getgrent.3
@ 2023-11-01 14:02 Helge Kreutzmann
2023-11-01 15:32 ` Alejandro Colomar
0 siblings, 1 reply; 2+ messages in thread
From: Helge Kreutzmann @ 2023-11-01 14:02 UTC (permalink / raw)
To: alx.manpages; +Cc: mario.blaettermann, linux-man
Without further ado, the following was found:
Issue: NULL-terminated → NUL-terminated
msgid ""
"struct group {\n"
" char *gr_name; /* group name */\n"
" char *gr_passwd; /* group password */\n"
" gid_t gr_gid; /* group ID */\n"
" char **gr_mem; /* NULL-terminated array of pointers\n"
" to names of group members */\n"
"};\n"
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Issue in man page getgrent.3
2023-11-01 14:02 Issue in man page getgrent.3 Helge Kreutzmann
@ 2023-11-01 15:32 ` Alejandro Colomar
0 siblings, 0 replies; 2+ messages in thread
From: Alejandro Colomar @ 2023-11-01 15:32 UTC (permalink / raw)
To: Helge Kreutzmann; +Cc: mario.blaettermann, linux-man
[-- Attachment #1: Type: text/plain, Size: 742 bytes --]
Hi Helge,
On Wed, Nov 01, 2023 at 02:02:10PM +0000, Helge Kreutzmann wrote:
> Without further ado, the following was found:
>
> Issue: NULL-terminated → NUL-terminated
NUL would be wrong. It is a pointer to an array of pointers to char,
of which the last contains a null pointer, which marks the end of the
array.
Cheers,
Alex
>
> msgid ""
> "struct group {\n"
> " char *gr_name; /* group name */\n"
> " char *gr_passwd; /* group password */\n"
> " gid_t gr_gid; /* group ID */\n"
> " char **gr_mem; /* NULL-terminated array of pointers\n"
> " to names of group members */\n"
> "};\n"
--
<https://www.alejandro-colomar.es/>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-11-01 15:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-01 14:02 Issue in man page getgrent.3 Helge Kreutzmann
2023-11-01 15:32 ` Alejandro Colomar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox