mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00: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) {
|
||||
VIR_ERROR(_("Failed to bind socket to '%s': %s"),
|
||||
path, virStrerror(errno, ebuf, sizeof ebuf));
|
||||
umask(oldmask);
|
||||
goto cleanup;
|
||||
}
|
||||
umask(oldmask);
|
||||
|
Loading…
x
Reference in New Issue
Block a user