summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-repo-static-delta-compilation.c
diff options
context:
space:
mode:
authorDan Nicholson <nicholson@endlessm.com>2016-08-09 11:46:30 -0700
committerAtomic Bot <atomic-devel@projectatomic.io>2016-08-10 10:54:46 +0000
commitc3c07a2d496f43cdda0a8f5617c6373d961f67df (patch)
tree18585ebd416c143b994a59660d8b1c70a71d0778 /src/libostree/ostree-repo-static-delta-compilation.c
parent1e5ff71c498f85af209ccaf0eee3c4cff26f21ac (diff)
downloadostree-c3c07a2d496f43cdda0a8f5617c6373d961f67df.tar.gz
deltas: Use F_DUPFD_CLOEXEC properly
You need to supply an argument to F_DUPFD_CLOEXEC or fcntl will return EINVAL. Use 3 as the minimum fd number as is standard. Closes: #454 Closes: #448 Approved by: cgwalters
Diffstat (limited to 'src/libostree/ostree-repo-static-delta-compilation.c')
-rw-r--r--src/libostree/ostree-repo-static-delta-compilation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libostree/ostree-repo-static-delta-compilation.c b/src/libostree/ostree-repo-static-delta-compilation.c
index 7ef7680d..188f467d 100644
--- a/src/libostree/ostree-repo-static-delta-compilation.c
+++ b/src/libostree/ostree-repo-static-delta-compilation.c
@@ -1362,7 +1362,7 @@ ostree_repo_static_delta_generate (OstreeRepo *self,
}
else
{
- tmp_dfd = fcntl (self->tmp_dir_fd, F_DUPFD_CLOEXEC);
+ tmp_dfd = fcntl (self->tmp_dir_fd, F_DUPFD_CLOEXEC, 3);
if (tmp_dfd < 0)
{
glnx_set_error_from_errno (error);