]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: avoid use of undefined GLUSTER_CLI variable
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 19 Jan 2017 10:27:11 +0000 (10:27 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 19 Jan 2017 10:56:54 +0000 (10:56 +0000)
commit2e045a4f9bf2757199c0997b9842d8dd8510459f
treed4686778b50047979868f1789cebdb67056e4b82
parentb9cc6316c078cccc82addf607de09520a52d88e1
storage: avoid use of undefined GLUSTER_CLI variable

Previous commit tried to change configure logic such that the
GLUSTER_CLI parameter would always be set:

  commit 9e97c8c0f0f3921d06bac2b92cd094a41373f748
  Author: Peter Krempa <pkrempa@redhat.com>
  Date:   Mon Jan 9 15:56:12 2017 +0100

    storage: gluster: Remove build-time dependency on the 'gluster' cli tool

This missed the fact that the AC_PATH_PROG call was itself inside an 'if'
conditional that would not be called in with_storage_gluster was false. As
a result, GLUSTER_CLI was still conditionally defined.

Just kill the GLUSTER_CLI parameter and AC_PATH_PROG call entirely and pass a
bare "gluster" string to virFindFileInPath instead.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
configure.ac
src/storage/storage_util.c