From: Todd C. Miller Date: Wed, 10 May 2017 15:22:07 +0000 (-0600) Subject: Only display string version of errno if sudo_ev_add() fails for now X-Git-Tag: SUDO_1_8_20^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0244f931dd167a0e7f7dbf0c6b6eb1747bdaa51d;p=sudo Only display string version of errno if sudo_ev_add() fails for now --- diff --git a/plugins/sudoers/sudoreplay.c b/plugins/sudoers/sudoreplay.c index 11e24e9f9..c555ae51c 100644 --- a/plugins/sudoers/sudoreplay.c +++ b/plugins/sudoers/sudoreplay.c @@ -449,7 +449,7 @@ replay_session(const double max_wait, const char *decimal) /* Run event event loop to delay and get keyboard input. */ if (sudo_ev_add(evbase, input_ev, &timeout, false) == -1) - sudo_fatal(U_("unable to add event to queue")); + sudo_fatal(NULL); sudo_ev_loop(evbase, 0); /* Even if we are not replaying, we still have to delay. */ @@ -555,7 +555,7 @@ replay_session(const double max_wait, const char *decimal) /* Run event event loop to write output. */ /* XXX - should use a single event loop with a circular buffer. */ if (sudo_ev_add(evbase, output_ev, NULL, false) == -1) - sudo_fatal(U_("unable to add event to queue")); + sudo_fatal(NULL); sudo_ev_loop(evbase, 0); } } @@ -626,7 +626,7 @@ write_output(int fd, int what, void *v) /* Reschedule event to write remainder. */ if (sudo_ev_add(NULL, wc->wevent, NULL, false) == -1) - sudo_fatal(U_("unable to add event to queue")); + sudo_fatal(NULL); debug_return; } @@ -1170,7 +1170,7 @@ check_input(int fd, int what, void *v) } /* Re-enable event. */ if (sudo_ev_add(NULL, ev, timeout, false) == -1) - sudo_fatal(U_("unable to add event to queue")); + sudo_fatal(NULL); } debug_return; }