Re: [PATCH 32/41] admin: add ability to connect to the per-driver daemon sockets

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

 



On Tue, 2019-07-23 at 17:03 +0100, Daniel P. Berrangé wrote:
[...]
> +++ b/src/libvirt-admin.c
> @@ -101,6 +97,7 @@ virAdmInitialize(void)
>      return 0;
>  }
>  
> +
>  static char *
>  getSocketPath(virURIPtr uri)
>  {

Unrelated whitespace change.

[...]
> @@ -127,27 +124,28 @@ getSocketPath(virURIPtr uri)
>          if (STREQ_NULLABLE(uri->path, "/system")) {
> -            if (virAsprintf(&sock_path, LOCALSTATEDIR "/run/libvirt/%s",
> -                            sockbase) < 0)
> +            if (virAsprintf(&sock_path, LOCALSTATEDIR "/run/libvirt/%s-admin-sock",
> +                            legacy ? "libvirt" : uri->scheme) < 0)

Since you're touching this anyway, you might as well turn it into

  virAsprintf(&sock_path, "%s/run/libvirt/%s-admin-sock",
              LOCALSTATEDIR, legacy ? "libvirt" : uri->scheme)


With these nits addressed,

  Reviewed-by: Andrea Bolognani <abologna@xxxxxxxxxx>


-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux