mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Make sure we reset the umask on the error path
This commit is contained in:
parent
9516a0eca3
commit
a236732ec3
@ -603,6 +603,7 @@ static int qemudListenUnix(struct qemud_server *server,
|
|||||||
if (bind(sock->fd, &sock->addr.data.sa, sock->addr.len) < 0) {
|
if (bind(sock->fd, &sock->addr.data.sa, sock->addr.len) < 0) {
|
||||||
VIR_ERROR(_("Failed to bind socket to '%s': %s"),
|
VIR_ERROR(_("Failed to bind socket to '%s': %s"),
|
||||||
path, virStrerror(errno, ebuf, sizeof ebuf));
|
path, virStrerror(errno, ebuf, sizeof ebuf));
|
||||||
|
umask(oldmask);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
umask(oldmask);
|
umask(oldmask);
|
||||||
|
Loading…
Reference in New Issue
Block a user