diff options
author | Dan Nicholson <nicholson@endlessm.com> | 2016-08-09 11:46:30 -0700 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2016-08-10 10:54:46 +0000 |
commit | c3c07a2d496f43cdda0a8f5617c6373d961f67df (patch) | |
tree | 18585ebd416c143b994a59660d8b1c70a71d0778 /src/libostree/ostree-repo-static-delta-compilation.c | |
parent | 1e5ff71c498f85af209ccaf0eee3c4cff26f21ac (diff) | |
download | ostree-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.c | 2 |
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); |