From a236732ec311f0c80d7365362939878cc9fec3b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Guido=20G=C3=BCnther?= Date: Wed, 9 Mar 2011 14:19:56 +0100 Subject: [PATCH] Make sure we reset the umask on the error path --- daemon/libvirtd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c index 9a5a53e3e3..1e41feb1db 100644 --- a/daemon/libvirtd.c +++ b/daemon/libvirtd.c @@ -603,6 +603,7 @@ static int qemudListenUnix(struct qemud_server *server, if (bind(sock->fd, &sock->addr.data.sa, sock->addr.len) < 0) { VIR_ERROR(_("Failed to bind socket to '%s': %s"), path, virStrerror(errno, ebuf, sizeof ebuf)); + umask(oldmask); goto cleanup; } umask(oldmask); -- 2.39.5