We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50a4a96 commit 437dc11Copy full SHA for 437dc11
bin/xbps-rindex/repoflush.c
@@ -83,6 +83,8 @@ open_archive(int fd, const char *compression)
83
r = archive_write_open_fd(ar, fd);
84
if (r != ARCHIVE_OK) {
85
r = -archive_errno(ar);
86
+ if (r == 1)
87
+ r = -EINVAL;
88
archive_write_free(ar);
89
errno = -r;
90
return NULL;
@@ -186,6 +188,8 @@ repodata_flush(const char *repodir,
186
188
/* Write data to tempfile and rename */
187
189
if (archive_write_close(ar) == ARCHIVE_FATAL) {
190
191
192
193
xbps_error_printf("failed to close archive: %s\n", archive_error_string(ar));
194
goto err;
195
}
0 commit comments