提交 a236732e 编写于 作者: G Guido Günther

Make sure we reset the umask on the error path

上级 9516a0ec
...@@ -603,6 +603,7 @@ static int qemudListenUnix(struct qemud_server *server, ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册