[Pkg-libvirt-commits] [libvirt] 11/18: Check correct dirs for existence

Guido Guenther agx at moszumanska.debian.org
Sun Sep 28 12:31:47 UTC 2014


This is an automated email from the git hooks/post-receive script.

agx pushed a commit to annotated tag debian/0.9.12.3-1+deb7u1
in repository libvirt.

commit 753faf6e939ad4ffa2d2f4f4e619a815a1de1c2a
Author: Guido Günther <agx at sigxcpu.org>
Date:   Sun Nov 24 22:24:52 2013 +0100

    Check correct dirs for existence
    
    Closes: #729331
---
 debian/libvirt-bin.postinst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/debian/libvirt-bin.postinst b/debian/libvirt-bin.postinst
index d427f06..e1384da 100644
--- a/debian/libvirt-bin.postinst
+++ b/debian/libvirt-bin.postinst
@@ -78,13 +78,13 @@ add_statoverrides()
     done
 
     if ! dpkg-statoverride --list "${SANLOCK_DIR}" >/dev/null 2>&1; then
-        [ ! -e "${dir}" ] || chown root:root "${SANLOCK_DIR}"
-        [ ! -e "${dir}" ] || chmod 0700 "${SANLOCK_DIR}"
+        [ ! -e "${SANLOCK_DIR}" ] || chown root:root "${SANLOCK_DIR}"
+        [ ! -e "${SANLOCK_DIR}" ] || chmod 0700 "${SANLOCK_DIR}"
     fi
 
     if ! dpkg-statoverride --list "${QEMU_CONF}" >/dev/null 2>&1; then
-        [ ! -e "${dir}" ] || chown root:root "${QEMU_CONF}"
-        [ ! -e "${dir}" ] || chmod 0600 "${QEMU_CONF}"
+        [ ! -e "${QEMU_CONF}" ] || chown root:root "${QEMU_CONF}"
+        [ ! -e "${QEMU_CONF}" ] || chmod 0600 "${QEMU_CONF}"
     fi
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libvirt.git



More information about the Pkg-libvirt-commits mailing list