[PATCH] unlink roSockname, not sockname

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Very trivial fix, but necessary because it prevents the qemu proxy from restarting.

Rich.

--
Emerging Technologies, Red Hat  http://et.redhat.com/~rjones/
64 Baker Street, London, W1U 7DF     Mobile: +44 7866 314 421
 "[Negative numbers] darken the very whole doctrines of the equations
 and make dark of the things which are in their nature excessively
 obvious and simple" (Francis Maseres FRS, mathematician, 1759)
diff --git a/qemud/qemud.c b/qemud/qemud.c
index ec7b33a..0aab7c9 100644
--- a/qemud/qemud.c
+++ b/qemud/qemud.c
@@ -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",

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]