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

Guido Guenther agx at moszumanska.debian.org
Sun Nov 24 21:38:48 UTC 2013


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

agx pushed a commit to branch master
in repository libvirt.

commit 9d8f3c5447eb479821f7334e57a6bc6f6bd65d0f
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 38ddae7..78cd125 100644
--- a/debian/libvirt-bin.postinst
+++ b/debian/libvirt-bin.postinst
@@ -80,13 +80,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