]> granicus.if.org Git - sudo/commitdiff
Always display the I/O plugin version as long as its open functions
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 15 Feb 2013 17:31:49 +0000 (12:31 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 15 Feb 2013 17:31:49 +0000 (12:31 -0500)
doesn't return an error.  Previously it was only displayed if the
plugin open returned 1.

src/sudo.c

index fddc15046137e5daf7f0e57689a5c493868a1ed3..8b843b64ccfa3ce1622e5ac49b465aad66256188 100644 (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;