Update libglnx
authorColin Walters <walters@verbum.org>
Wed, 2 Aug 2017 19:44:34 +0000 (15:44 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 16 Aug 2017 12:56:48 +0000 (12:56 +0000)
This is mostly the `copy_file_range` changes plus the Coverity files.

```
Colin Walters (4):
      localalloc: Abort on EBADF from close() by default
      local-alloc: Remove almost all macros like glnx_free, glnx_unref_variant
      console: Fix Coverity NULL deref warning
      fdio: Merge systemd code to use copy_file_range(), use FICLONE

Jonathan Lebon (1):
      console: trim useless check

Matthew Leeds (1):
      dirfd: Fix typo in comment

Philip Withnall (1):
      glnx-console: Add missing NULL check before writing out text
```

Update submodule: libglnx

Closes: #1081
Approved by: jlebon

libglnx
src/libostree/ostree-repo-checkout.c
src/libostree/ostree-repo-commit.c

diff --git a/libglnx b/libglnx
index ea6df95f22c8f2973714bdbb8b1accc4e37d4d56..e226ccf6913d1d852fde1e150a99fab508f85c34 160000 (submodule)
--- a/libglnx
+++ b/libglnx
@@ -1 +1 @@
-Subproject commit ea6df95f22c8f2973714bdbb8b1accc4e37d4d56
+Subproject commit e226ccf6913d1d852fde1e150a99fab508f85c34
index bfc280b6805e61c46d3b9a7139ad632c389471f2..3deaa297d739895e25a63c64d7d200cfb4a77219 100644 (file)
@@ -122,7 +122,7 @@ write_regular_file_content (OstreeRepo            *self,
       int infd = g_file_descriptor_based_get_fd ((GFileDescriptorBased*) input);
       guint64 len = g_file_info_get_size (file_info);
 
-      if (glnx_regfile_copy_bytes (infd, outfd, (off_t)len, TRUE) < 0)
+      if (glnx_regfile_copy_bytes (infd, outfd, (off_t)len) < 0)
         return glnx_throw_errno_prefix (error, "regfile copy");
     }
   else
index 72961ddebbb6c3afe95fbc61e2aad83d5aaa8424..1c6e5e8d5e2c59db3a203a316de33b9d621a0f5b 100644 (file)
@@ -467,7 +467,7 @@ create_regular_tmpfile_linkable_with_content (OstreeRepo *self,
   if (G_IS_FILE_DESCRIPTOR_BASED (input))
     {
       int infd = g_file_descriptor_based_get_fd ((GFileDescriptorBased*) input);
-      if (glnx_regfile_copy_bytes (infd, tmpf.fd, (off_t)length, TRUE) < 0)
+      if (glnx_regfile_copy_bytes (infd, tmpf.fd, (off_t)length) < 0)
         return glnx_throw_errno_prefix (error, "regfile copy");
     }
   else