]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Reindent and document that caught is not set.
authorNicolas François <nicolas.francois@centraliens.net>
Mon, 19 Aug 2013 21:31:59 +0000 (23:31 +0200)
committerNicolas François <nicolas.francois@centraliens.net>
Mon, 19 Aug 2013 21:31:59 +0000 (23:31 +0200)
src/su.c

index 122914bda6503079060ff19a7ff31e1978bf0c6d..7db5a868bc3a05b9022bd4bf24081a97634677f0 100644 (file)
--- a/src/su.c
+++ b/src/su.c
@@ -515,12 +515,16 @@ static void handle_session (void)
                        }
                } while (!stop);
 
-       if (have_tty == true) {
-               close (fd_pts);
-               /* Reset RAW mode  */
-               if (tcsetattr (STDIN_FILENO, TCSANOW, &termset_save) == -1)
-                       fprintf (stderr, _("%s: Cannot reset termios attributes\n"), Prog);
-       }
+               if (have_tty == true) {
+                       close (fd_pts);
+                       /* Reset RAW mode  */
+                       if (tcsetattr (STDIN_FILENO, TCSANOW, &termset_save) == -1) {
+                               fprintf (stderr,
+                                        _("%s: Cannot reset termios attributes\n"),
+                                        Prog);
+                               /* caught not set */
+                       }
+               }
        }
 
        if (0 != caught) {