From 48da345e79a0b690aa7d6d59ba8b50875988243b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 12 Jun 2012 20:52:04 +0200 Subject: cmdline: don't initalise archive plugins for --version Dump all archive plugins, even those that fail to initialise. --- src/archive_list.c | 2 -- src/cmdline.c | 1 - 2 files changed, 3 deletions(-) diff --git a/src/archive_list.c b/src/archive_list.c index 2656726b5..686498117 100644 --- a/src/archive_list.c +++ b/src/archive_list.c @@ -80,8 +80,6 @@ void archive_plugin_print_all_suffixes(FILE * fp) for (unsigned i = 0; archive_plugins[i] != NULL; ++i) { const struct archive_plugin *plugin = archive_plugins[i]; - if (!archive_plugins_enabled[i]) - continue; suffixes = plugin->suffixes; while (suffixes && *suffixes) { diff --git a/src/cmdline.c b/src/cmdline.c index 10f0a3572..4b44892f3 100644 --- a/src/cmdline.c +++ b/src/cmdline.c @@ -102,7 +102,6 @@ static void version(void) #ifdef ENABLE_ARCHIVE puts("\n" "Supported archives:\n"); - archive_plugin_init_all(); archive_plugin_print_all_suffixes(stdout); #endif -- cgit v1.2.3