mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 21:38:05 +00:00
Unbreak the non-io logging case.
This commit is contained in:
parent
2b8fc46e2c
commit
cd26d2891d
@ -799,7 +799,11 @@ sudo_execve(struct command_details *details, char *argv[], char *envp[],
|
||||
if (n == -1) {
|
||||
if (errno == EINTR)
|
||||
continue;
|
||||
if (errno != EAGAIN) {
|
||||
/*
|
||||
* If not logging I/O we will receive ECONNRESET when
|
||||
* the command is executed. It is safe to ignore this.
|
||||
*/
|
||||
if (log_io && errno != EAGAIN) {
|
||||
cstat->type = CMD_ERRNO;
|
||||
cstat->val = errno;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user