public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx@kernel.org>
To: Helge Kreutzmann <debian@helgefjell.de>
Cc: mario.blaettermann@gmail.com, linux-man@vger.kernel.org
Subject: Re: Issue in man page getgrent.3
Date: Wed, 1 Nov 2023 16:32:05 +0100	[thread overview]
Message-ID: <ZUJvdW0ZLtzp7hgb@debian> (raw)
In-Reply-To: <ZUJaYkEfZ2HQMbgG@meinfjell.helgefjelltest.de>

[-- 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 --]

      reply	other threads:[~2023-11-01 15:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-01 14:02 Issue in man page getgrent.3 Helge Kreutzmann
2023-11-01 15:32 ` Alejandro Colomar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZUJvdW0ZLtzp7hgb@debian \
    --to=alx@kernel.org \
    --cc=debian@helgefjell.de \
    --cc=linux-man@vger.kernel.org \
    --cc=mario.blaettermann@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox