[Libguestfs] [PATCH libguestfs 07/23] manually adjust ABS_PATH uses for new semantics

Richard W.M. Jones rjones at redhat.com
Wed Aug 12 17:34:54 UTC 2009


On Wed, Aug 12, 2009 at 06:52:43PM +0200, Jim Meyering wrote:
> From: Jim Meyering <meyering at redhat.com>
> 
> * daemon/file.c (do_cat): fix an ABS_PATH use
> ---
>  daemon/file.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/daemon/file.c b/daemon/file.c
> index e185132..9cc324f 100644
> --- a/daemon/file.c
> +++ b/daemon/file.c
> @@ -74,7 +74,7 @@ do_cat (char *path)
>    char *buf, *buf2;
> 
>    NEED_ROOT (NULL);
> -  ABS_PATH (path,NULL);
> +  ABS_PATH (path, return NULL);
> 
>    CHROOT_IN;
>    fd = open (path, O_RDONLY);
> -- 
> 1.6.4.337.g5420e
> 
> _______________________________________________
> Libguestfs mailing list
> Libguestfs at redhat.com
> https://www.redhat.com/mailman/listinfo/libguestfs

ACK.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v




More information about the Libguestfs mailing list