[ostree] checkout: Use fd-relative open of newly created directory
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] checkout: Use fd-relative open of newly created directory
- Date: Thu, 27 Feb 2014 16:50:17 +0000 (UTC)
commit d8852d099a1497666519f260d01f9d44f93cbb41
Author: Colin Walters <walters verbum org>
Date: Thu Feb 27 11:49:49 2014 -0500
checkout: Use fd-relative open of newly created directory
We were walking the full path again on our directories, no need to do
that.
src/libgsystem | 2 +-
src/libostree/ostree-repo-checkout.c | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/libgsystem b/src/libgsystem
index 31cd0b9..7a24997 160000
--- a/src/libgsystem
+++ b/src/libgsystem
@@ -1 +1 @@
-Subproject commit 31cd0b96bba5ccf391f4c4f5d94cddce44c65793
+Subproject commit 7a2499708b6aa0be5a67e4a75de66fb9c18516af
diff --git a/src/libostree/ostree-repo-checkout.c b/src/libostree/ostree-repo-checkout.c
index a2a8b52..e965980 100644
--- a/src/libostree/ostree-repo-checkout.c
+++ b/src/libostree/ostree-repo-checkout.c
@@ -568,8 +568,9 @@ checkout_tree_at (OstreeRepo *self,
}
}
- if (!gs_file_open_dir_fd (destination, &destination_dfd,
- cancellable, error))
+ if (!gs_file_open_dir_fd_at (destination_parent_fd, destination_name,
+ &destination_dfd,
+ cancellable, error))
goto out;
/* Set the xattrs now, so any derived labeling works */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]