These two filters failed to correctly set a name when
being registered, which prevented them from working
correctly with archive_read_append_filter()
Thanks to @fdegros for the test case demonstrating the lrzip failure
strcpy(str, "lrzip");
r1 = archive_read_support_filter_lrzip(_a);
break;
+ case ARCHIVE_FILTER_GRZIP:
+ strcpy(str, "grzip");
+ r1 = archive_read_support_filter_grzip(_a);
+ break;
default:
archive_set_error(&a->archive, ARCHIVE_ERRNO_PROGRAMMER,
"Invalid filter code specified");
{
struct archive_read *a = (struct archive_read *)_a;
- if (__archive_read_register_bidder(a, NULL, NULL,
+ if (__archive_read_register_bidder(a, NULL, "grzip",
&grzip_bidder_vtable) != ARCHIVE_OK)
return (ARCHIVE_FATAL);
{
struct archive_read *a = (struct archive_read *)_a;
- if (__archive_read_register_bidder(a, NULL, NULL,
+ if (__archive_read_register_bidder(a, NULL, "lzop",
&lzop_bidder_vtable) != ARCHIVE_OK)
return (ARCHIVE_FATAL);