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
This commit is contained in:
parent
1e5ff71c49
commit
c3c07a2d49
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue