提交 8e760f1d 编写于 作者: D Daniel P. Berrange

Fixed typo in flags

上级 6113d4e1
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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册