mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-16 10:50:43 +03:00
ostree-repo-static-delta-processing: Don't close(-1)
Ultimately harmless, but causes somewhat scary strace messages. Closes: #591 Approved by: cgwalters
This commit is contained in:
parent
a8f5c20209
commit
fbce608177
@ -842,7 +842,7 @@ dispatch_set_read_source (OstreeRepo *repo,
|
||||
gboolean ret = FALSE;
|
||||
guint64 source_offset;
|
||||
|
||||
if (state->read_source_fd)
|
||||
if (state->read_source_fd != -1)
|
||||
{
|
||||
(void) close (state->read_source_fd);
|
||||
state->read_source_fd = -1;
|
||||
@ -887,7 +887,7 @@ dispatch_unset_read_source (OstreeRepo *repo,
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (state->read_source_fd)
|
||||
if (state->read_source_fd != -1)
|
||||
{
|
||||
(void) close (state->read_source_fd);
|
||||
state->read_source_fd = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user