Call gettext() on parameters for warning()/warningx() instead of
having warning() do it for us.
This commit is contained in:
@@ -377,7 +377,7 @@ sudo_execute(struct command_details *details, struct command_status *cstat)
|
||||
/* One of the ttys must have gone away. */
|
||||
goto do_tty_io;
|
||||
}
|
||||
warning(N_("select failed"));
|
||||
warning(_("select failed"));
|
||||
sudo_debug_printf(SUDO_DEBUG_ERROR,
|
||||
"select failure, terminating child");
|
||||
schedule_signal(SIGKILL);
|
||||
@@ -479,7 +479,7 @@ do_tty_io:
|
||||
if (ISSET(details->flags, CD_RBAC_ENABLED)) {
|
||||
/* This is probably not needed in log_io mode. */
|
||||
if (selinux_restore_tty() != 0)
|
||||
warningx(N_("unable to restore tty label"));
|
||||
warningx(_("unable to restore tty label"));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user