mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-08 14:04:27 -04:00
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:
1 parent
607f1775bb
commit
23f7df1500
1 file changed
+1
-3
+1
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user