Fix regression in xendomains initscript: test for privcmd char device
authorSander Eikelenboom <linux@eikelenboom.it>
Tue, 8 Dec 2015 15:07:03 +0000 (16:07 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 8 Dec 2015 16:54:40 +0000 (16:54 +0000)
Since commit:
"xendomains initscript: test for privcmd char device"
(1367e9e5ba4d1612e303123ec0bbf961100fcfa1)
due to incorrect negation the xendomains initscript bails out
early when both: "/dev/xen/privcmd" and "/proc/xen/privcmd"
are present in dom0.

Signed-off-by: Sander Eikelenboom <linux@eikelenboom.it>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/hotplug/Linux/xendomains.in

index 686f061cac694d56a35a397ca1b6ac4a42d6fafa..dfe0b333a354304936bd368eeef5945ceab881bc 100644 (file)
@@ -45,7 +45,7 @@ fi
 
 # Correct exit code would probably be 5, but it's enough
 # if xend complains if we're not running as privileged domain
-if ! [ -e /dev/xen/privcmd ] || [ -e /proc/xen/privcmd ]; then
+if [ ! -e /dev/xen/privcmd ] && [ ! -e /proc/xen/privcmd ]; then
        exit 0
 fi