checkout: Use fd-relative open of newly created directory
We were walking the full path again on our directories, no need to do that.
This commit is contained in:
1 parent
b6704f8346
commit
d8852d099a
2 files changed
+4
-3
No files matched your search
+1
-1
Submodule src/libgsystem updated: 31cd0b96bb...7a2499708b.
@@ -568,8 +568,9 @@ checkout_tree_at (OstreeRepo *self,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gs_file_open_dir_fd (destination, &destination_dfd,
|
if (!gs_file_open_dir_fd_at (destination_parent_fd, destination_name,
|
||||||
cancellable, error))
|
&destination_dfd,
|
||||||
|
cancellable, error))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
/* Set the xattrs now, so any derived labeling works */
|
/* Set the xattrs now, so any derived labeling works */
|
||||||
|
|||||||
Reference in new issue
Block a user