On Fri, Mar 27, 2026 at 10:54:43AM +0100, Peter Krempa via Devel wrote:
> From: Peter Krempa <[email protected]>
> 
> Document both the behaviour if requested length isn't enough to read the
> file as well as the semantics of NUL-termination of the buffer.
> 
> Signed-off-by: Peter Krempa <[email protected]>
> ---
>  src/util/virfile.c | 140 ++++++++++++++++++++++++++++++++++++++++-----
>  1 file changed, 126 insertions(+), 14 deletions(-)
> 
> diff --git a/src/util/virfile.c b/src/util/virfile.c
> index fbcaf15429..bc3faedd4e 100644
> --- a/src/util/virfile.c
> +++ b/src/util/virfile.c
> @@ -1534,10 +1534,27 @@ saferead_lim(int fd, size_t max_len, size_t *length)
>  }
> 
> 
> -/* A wrapper around saferead_lim that merely stops reading at the
> - * specified maximum size.  */
> +/**
> + * virFileReadHeaderQuiet:

s/virFileReadHeaderQuiet/virFileReadHeaderFD/

Attachment: signature.asc
Description: PGP signature

Reply via email to