From: Todd C. Miller Date: Tue, 11 May 2010 17:33:42 +0000 (-0400) Subject: Fix pasto in mulitple signal fix and use _NSIG not NSIG since that X-Git-Tag: SUDO_1_8_0~645 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ea8de47fac63847cf53d134b305187489b9111f;p=sudo Fix pasto in mulitple signal fix and use _NSIG not NSIG since that is what our compat checks set. --- diff --git a/src/tgetpass.c b/src/tgetpass.c index 440953fbd..f6fe09fbc 100644 --- a/src/tgetpass.c +++ b/src/tgetpass.c @@ -104,7 +104,7 @@ tgetpass(const char *prompt, int timeout, int flags) } restart: - for (i = 0; i < _NSIG; i++) + for (i = 0; i < NSIG; i++) signo[i] = 0; pass = NULL; save_errno = 0; @@ -171,10 +171,10 @@ restart: * If we were interrupted by a signal, resend it to ourselves * now that we have restored the signal handlers. */ - for (i = 0; i < _NSIG; i++) { + for (i = 0; i < NSIG; i++) { if (signo[i]) { - kill(getpid(), signo[i]); - switch (signo[i]) { + kill(getpid(), i); + switch (i) { case SIGTSTP: case SIGTTIN: case SIGTTOU: