[Libguestfs] [PATCH v2] fuse: use the configured program name

Pino Toscano ptoscano at redhat.com
Mon Feb 6 09:47:45 UTC 2017


On Friday, 3 February 2017 15:10:56 CET Richard W.M. Jones wrote:
> I think there is a bug in our documentation, see patch below.
> 
> Rich.
> 
> >From 935beccab9180b5883c6a214c739a161802b4853 Mon Sep 17 00:00:00 2001
> From: "Richard W.M. Jones" <rjones at redhat.com>
> Date: Fri, 3 Feb 2017 15:08:52 +0000
> Subject: [PATCH] lib: g->program is now never the empty string.
> 
> The getprogname module either sets g->program to a string derived from
> argv[0] or fails at compile time.
> 
> Fixes commit eea210dbf7d781bc253f927977868dbc6776f20d.
> ---
>  generator/actions.ml | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/generator/actions.ml b/generator/actions.ml
> index e8b0ba5..990eacb 100644
> --- a/generator/actions.ml
> +++ b/generator/actions.ml
> @@ -3184,8 +3184,8 @@ Set the program name.  This is an informative string which the
>  main program may optionally set in the handle.
>  
>  When the handle is created, the program name in the handle is
> -set to the basename from C<argv[0]>.  If that was not possible,
> -it is set to the empty string (but never C<NULL>)." };
> +set to the basename from C<argv[0]>.  The program name can never
> +be C<NULL>." };
>  
>    { defaults with
>      name = "get_program"; added = (1, 21, 29);

LGTM.

Thanks,
-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20170206/25083456/attachment.sig>


More information about the Libguestfs mailing list