dirfd: Add filename to glnx_opendirat()

This showed up in https://github.com/projectatomic/rpm-ostree/issues/883

We'll have to audit callers to be sure to avoid double-prefixing.
This commit is contained in:
Colin Walters
2017-07-19 09:30:13 -04:00
parent 607f1775bb
commit 23f7df1500

View File

@@ -67,9 +67,7 @@ glnx_opendirat (int dfd,
{
int ret = glnx_opendirat_with_errno (dfd, path, follow);
if (ret == -1)
{
return glnx_throw_errno_prefix (error, "openat");
}
return glnx_throw_errno_prefix (error, "opendir(%s)", path);
*out_fd = ret;
return TRUE;
}