acl-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] libacl: use getpwnam_r and getgrnam_r in acl_from_text.c


From: Cristian Rodríguez
Subject: Re: [PATCH] libacl: use getpwnam_r and getgrnam_r in acl_from_text.c
Date: Wed, 4 Jan 2023 21:13:25 -0300

On Wed, Jan 4, 2023 at 4:51 AM Mike Frysinger <vapier@gentoo.org> wrote:

> that's not really guaranteed to be big enough.  for that matter, the
> return value of sysconf isn't guaranteed either.  i know the type is
> called "size max", but it's actually the "suggested initial size".

This point never gets enough attention, it is not specified what a
"big enough" buffer is.
The C library uses a variable-sized scratch buffer to store the result..



reply via email to

[Prev in Thread] Current Thread [Next in Thread]