Always display the I/O plugin version as long as its open functions

doesn't return an error.  Previously it was only displayed if the
plugin open returned 1.
This commit is contained in:
Todd C. Miller
2013-02-15 12:31:49 -05:00
parent 791b751425
commit 790304789e

View File

@@ -219,7 +219,7 @@ main(int argc, char *argv[], char *envp[])
tq_foreach_fwd(&io_plugins, plugin) {
ok = iolog_open(plugin, settings, user_info, NULL,
nargc, nargv, envp);
if (ok == 1)
if (ok != -1)
iolog_show_version(plugin, !user_details.uid);
}
break;