summaryrefslogtreecommitdiff
path: root/src/virsh.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2007-02-14 01:40:09 +0000
committerDaniel P. Berrange <berrange@redhat.com>2007-02-14 01:40:09 +0000
commit23ad665cb05ef9ce7d298cc34bff5efb95ef6948 (patch)
tree4f61e7ca256a129b8a4eb2f0736437748fd99e3a /src/virsh.c
parented02290129e909e1ff00e39eff4d9bfd6f6b9c58 (diff)
downloadlibvirt-23ad665cb05ef9ce7d298cc34bff5efb95ef6948.tar.gz
Added QEMU support
Diffstat (limited to 'src/virsh.c')
-rw-r--r--src/virsh.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/virsh.c b/src/virsh.c
index 212d6d6b45..390788d56a 100644
--- a/src/virsh.c
+++ b/src/virsh.c
@@ -2529,7 +2529,9 @@ vshInit(vshControl * ctl)
/* basic connection to hypervisor, for Xen connections unless
we're root open a read only connections. Allow 'test' HV
to be RW all the time though */
- if (ctl->uid == 0 || (ctl->name && !strncmp(ctl->name, "test", 4)))
+ if (ctl->uid == 0 || (ctl->name &&
+ (!strncmp(ctl->name, "test", 4) ||
+ !strncmp(ctl->name, "qemu", 4))))
ctl->conn = virConnectOpen(ctl->name);
else
ctl->conn = virConnectOpenReadOnly(ctl->name);