mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-03 17:47:15 +03:00
Fixed unlink of readonly mode socket
This commit is contained in:
parent
e8c6aa703a
commit
8cb208cd57
@ -1,3 +1,8 @@
|
||||
Tue Mar 06 11:47:12 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* src/qemud.c: Unlink read-only socket upon startup (patch
|
||||
from Rich Jones)
|
||||
|
||||
Mon Mar 05 12:19:42 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* src/qemu_internal.c: Remove bogus ATTRIBUTE_UNUSED annotation
|
||||
|
@ -424,7 +424,7 @@ static int qemudInitPaths(struct qemud_server *server,
|
||||
if (snprintf(roSockname, maxlen, "%s/run/libvirt/qemud-sock-ro", LOCAL_STATE_DIR) >= maxlen)
|
||||
goto snprintf_error;
|
||||
|
||||
unlink(sockname);
|
||||
unlink(roSockname);
|
||||
} else {
|
||||
if (!(pw = getpwuid(uid))) {
|
||||
qemudLog(QEMUD_ERR, "Failed to find user record for uid '%d': %s",
|
||||
|
Loading…
x
Reference in New Issue
Block a user