diff options
author | Colin Walters <walters@verbum.org> | 2017-07-17 21:14:04 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-07-18 19:18:38 +0000 |
commit | 2a9689b76a52bda06a45665d3ad77be06f1b1c2e (patch) | |
tree | ff4c16f230b6bc985f8c7e4d3efff24b92855e97 /src/libostree/ostree-repo-checkout.c | |
parent | efd460782a439394cf980b82db7a93a81b887a4b (diff) | |
download | ostree-2a9689b76a52bda06a45665d3ad77be06f1b1c2e.tar.gz |
Update libglnx, port various bits to new API
Using the error prefixing in the delta processing allows us to
do new code style. Also strip trailing whitespace.
Use error prefixing in a few other random places. I didn't
hunt for all of them, just testing out the new API.
Use `glnx_fchmod()`. Also note I dropped one `fchmod (tmpf, 0600)`
which is no longer necessary.
Update submodule: libglnx
Closes: #1011
Approved by: jlebon
Diffstat (limited to 'src/libostree/ostree-repo-checkout.c')
-rw-r--r-- | src/libostree/ostree-repo-checkout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libostree/ostree-repo-checkout.c b/src/libostree/ostree-repo-checkout.c index 7942d607..15d0394b 100644 --- a/src/libostree/ostree-repo-checkout.c +++ b/src/libostree/ostree-repo-checkout.c @@ -81,8 +81,8 @@ checkout_object_for_uncompressed_cache (OstreeRepo *self, if (!g_output_stream_close (temp_out, cancellable, error)) return FALSE; - if (fchmod (tmpf.fd, file_mode) < 0) - return glnx_throw_errno (error); + if (!glnx_fchmod (tmpf.fd, file_mode, error)) + return FALSE; if (!_ostree_repo_ensure_loose_objdir_at (self->uncompressed_objects_dir_fd, loose_path, |