mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +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>
|
||||
|
||||
* 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");
|
||||
return VIR_DRV_OPEN_ERROR;
|
||||
}
|
||||
|
||||
if (flags & VIR_DRV_OPEN_RO)
|
||||
rflags |= VIR_DRV_OPEN_REMOTE_RO;
|
||||
/* Xen driver is a single system-wide driver, so
|
||||
@ -2174,11 +2173,11 @@ remoteNetworkOpen (virConnectPtr conn,
|
||||
* user, so use the per-user daemon, potentially
|
||||
* autostarting
|
||||
*/
|
||||
flags |= VIR_DRV_OPEN_REMOTE_UNIX;
|
||||
rflags |= VIR_DRV_OPEN_REMOTE_UNIX;
|
||||
if (getuid() > 0 &&
|
||||
!strcmp(conn->driver->name, "test")) {
|
||||
flags |= VIR_DRV_OPEN_REMOTE_USER;
|
||||
flags |= VIR_DRV_OPEN_REMOTE_AUTOSTART;
|
||||
rflags |= VIR_DRV_OPEN_REMOTE_USER;
|
||||
rflags |= VIR_DRV_OPEN_REMOTE_AUTOSTART;
|
||||
}
|
||||
|
||||
memset(priv, 0, sizeof(struct private_data));
|
||||
|
Loading…
Reference in New Issue
Block a user