Fix typo in read only connection check

This commit is contained in:
Daniel P. Berrange
2007-06-26 23:05:54 +00:00
parent b6b8583663
commit 8c90a88818
2 changed files with 6 additions and 1 deletions

View File

@@ -350,7 +350,7 @@ remoteOpen (virConnectPtr conn, const char *uri_str, int flags)
case trans_unix: {
if (!sockname) {
if (flags & VIR_CONNECT_RO)
if (flags & VIR_DRV_OPEN_RO)
sockname = strdup (LIBVIRTD_UNIX_SOCKET_RO);
else
sockname = strdup (LIBVIRTD_UNIX_SOCKET);