From b7a45b5815784eafdb05c2ef6f3357892dbfc841 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 18 Nov 2011 18:50:29 -0500 Subject: [PATCH] core: Also chown() after unpacking objects --- src/libostree/ostree-core.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libostree/ostree-core.c b/src/libostree/ostree-core.c index ebf4737e..c7a1cb13 100644 --- a/src/libostree/ostree-core.c +++ b/src/libostree/ostree-core.c @@ -871,6 +871,12 @@ unpack_file (GFile *file, goto out; } + if (lchown (dest_path, uid, gid) < 0) + { + ot_util_set_error_from_errno (error, errno); + goto out; + } + if (!S_ISLNK (mode)) { if (chmod (dest_path, mode) < 0)