2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 22:05:46 +00:00

Initialize io_operations earlier.

This commit is contained in:
Todd C. Miller
2020-02-28 07:03:15 -07:00
parent 6c9515496d
commit f590f81b3c

View File

@@ -656,6 +656,9 @@ sudoers_io_open(unsigned int version, sudo_conv_t conversation,
sudo_conv = conversation;
sudo_printf = plugin_printf;
/* Initialize io_operations. */
sudoers_io_setops();
/* If we have no command (because -V was specified) just return. */
if (argc == 0)
debug_return_int(true);
@@ -710,7 +713,6 @@ sudoers_io_open(unsigned int version, sudo_conv_t conversation,
/*
* Create local I/O log file or connect to remote log server.
*/
sudoers_io_setops();
if ((ret = io_operations.open(&last_time)) != true)
goto done;