diff -r d8efa4ffb380 src/remote_internal.c --- a/src/remote_internal.c Thu Jun 21 20:33:39 2007 -0400 +++ b/src/remote_internal.c Thu Jun 21 20:34:15 2007 -0400 @@ -347,7 +347,7 @@ remoteOpen (virConnectPtr conn, const ch 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);