提交 b90d4722 编写于 作者: M Michal Privoznik

util: Fix virFileAccessibleAs return path from parent

Despite documentation, if we do fork() parent always returns -1
even if file is accessible. Which is wrong obviously.
上级 419e5fb3
......@@ -724,8 +724,12 @@ virFileAccessibleAs(const char *path, int mode,
return -1;
}
errno = status;
return -1;
if (status) {
errno = status;
return -1;
}
return 0;
}
/* child.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册