]> granicus.if.org Git - linux-pam/blobdiff - libpam_misc/misc_conv.c
pam_unix: fix build in --enable-selinux mode
[linux-pam] / libpam_misc / misc_conv.c
index 8db24d74b41b1ad0dd907b2df02f41bc1ca8f0df..3f74eeae7c0eaebb748d09d12538b6112af8abc4 100644 (file)
@@ -150,12 +150,11 @@ static int read_string(int echo, const char *prompt, char **retstr)
        have_term = 1;
 
        /*
-        * We make a simple attempt to block TTY signals from terminating
+        * We make a simple attempt to block TTY signals from suspending
         * the conversation without giving PAM a chance to clean up.
         */
 
        sigemptyset(&nset);
-       sigaddset(&nset, SIGINT);
        sigaddset(&nset, SIGTSTP);
        (void) sigprocmask(SIG_BLOCK, &nset, &oset);
 
@@ -181,7 +180,7 @@ static int read_string(int echo, const char *prompt, char **retstr)
            if (have_term)
                nc = read(STDIN_FILENO, line, INPUTSIZE-1);
            else                             /* we must read one line only */
-               for (nc = 0; nc < INPUTSIZE-1 && (nc?line[nc-1]:0) != '\n';
+               for (nc = 0; nc < INPUTSIZE-1 && (nc?line[nc-1]:0) != '\n';
                     nc++) {
                    int rv;
                    if ((rv=read(STDIN_FILENO, line+nc, 1)) != 1) {