mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
Fixed typo in flags
This commit is contained in:
parent
6113d4e17d
commit
8e760f1d09
@ -1,3 +1,8 @@
|
|||||||
|
Thu Jul 5 09:46:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/remote_internal.c: Fixed typo in setting flags for network
|
||||||
|
opening.
|
||||||
|
|
||||||
Wed Jul 4 14:17:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
|
Wed Jul 4 14:17:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
|
||||||
* src/xm_internal.c: configCache not getting refilled if the
|
* src/xm_internal.c: configCache not getting refilled if the
|
||||||
|
@ -2166,7 +2166,6 @@ remoteNetworkOpen (virConnectPtr conn,
|
|||||||
error (NULL, VIR_ERR_NO_MEMORY, "struct private_data");
|
error (NULL, VIR_ERR_NO_MEMORY, "struct private_data");
|
||||||
return VIR_DRV_OPEN_ERROR;
|
return VIR_DRV_OPEN_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flags & VIR_DRV_OPEN_RO)
|
if (flags & VIR_DRV_OPEN_RO)
|
||||||
rflags |= VIR_DRV_OPEN_REMOTE_RO;
|
rflags |= VIR_DRV_OPEN_REMOTE_RO;
|
||||||
/* Xen driver is a single system-wide driver, so
|
/* Xen driver is a single system-wide driver, so
|
||||||
@ -2174,11 +2173,11 @@ remoteNetworkOpen (virConnectPtr conn,
|
|||||||
* user, so use the per-user daemon, potentially
|
* user, so use the per-user daemon, potentially
|
||||||
* autostarting
|
* autostarting
|
||||||
*/
|
*/
|
||||||
flags |= VIR_DRV_OPEN_REMOTE_UNIX;
|
rflags |= VIR_DRV_OPEN_REMOTE_UNIX;
|
||||||
if (getuid() > 0 &&
|
if (getuid() > 0 &&
|
||||||
!strcmp(conn->driver->name, "test")) {
|
!strcmp(conn->driver->name, "test")) {
|
||||||
flags |= VIR_DRV_OPEN_REMOTE_USER;
|
rflags |= VIR_DRV_OPEN_REMOTE_USER;
|
||||||
flags |= VIR_DRV_OPEN_REMOTE_AUTOSTART;
|
rflags |= VIR_DRV_OPEN_REMOTE_AUTOSTART;
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(priv, 0, sizeof(struct private_data));
|
memset(priv, 0, sizeof(struct private_data));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user