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

Re: [libvirt] [PATCH] libvirt-guests: avoid sourcing failure



On Fri, Dec 17, 2010 at 05:26:52PM -0700, Eric Blake wrote:
> * tools/libvirt-guests.init.in (libvirtd): Skip function library
> if it is not present.
> Suggested by Guido Günther.
> ---
>  tools/libvirt-guests.init.in |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/tools/libvirt-guests.init.in b/tools/libvirt-guests.init.in
> index 5dab36b..e28938d 100644
> --- a/tools/libvirt-guests.init.in
> +++ b/tools/libvirt-guests.init.in
> @@ -29,7 +29,8 @@ localstatedir= localstatedir@
>  libvirtd= sbindir@/libvirtd
> 
>  # Source function library.
> -. "$sysconfdir"/rc.d/init.d/functions
> +test ! -r "$sysconfdir"/rc.d/init.d/functions ||
> +  . "$sysconfdir"/rc.d/init.d/functions

ACK. Thanks!
 -- Guido


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