mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-02 07:15:27 +00:00
Initialize io_operations earlier.
This commit is contained in:
@@ -656,6 +656,9 @@ sudoers_io_open(unsigned int version, sudo_conv_t conversation,
|
|||||||
sudo_conv = conversation;
|
sudo_conv = conversation;
|
||||||
sudo_printf = plugin_printf;
|
sudo_printf = plugin_printf;
|
||||||
|
|
||||||
|
/* Initialize io_operations. */
|
||||||
|
sudoers_io_setops();
|
||||||
|
|
||||||
/* If we have no command (because -V was specified) just return. */
|
/* If we have no command (because -V was specified) just return. */
|
||||||
if (argc == 0)
|
if (argc == 0)
|
||||||
debug_return_int(true);
|
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.
|
* Create local I/O log file or connect to remote log server.
|
||||||
*/
|
*/
|
||||||
sudoers_io_setops();
|
|
||||||
if ((ret = io_operations.open(&last_time)) != true)
|
if ((ret = io_operations.open(&last_time)) != true)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user