Fixed typo in flags

This commit is contained in:
Daniel P. Berrange 2007-07-05 13:47:29 +00:00
parent 6113d4e17d
commit 8e760f1d09
2 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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));