]> granicus.if.org Git - strace/commitdiff
Decode TIOCSCTTY's third parameter
authorDenys Vlasenko <dvlasenk@redhat.com>
Sat, 22 Oct 2011 02:52:18 +0000 (04:52 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Sat, 22 Oct 2011 02:52:18 +0000 (04:52 +0200)
* term.c (term_ioctl): Decode TIOCSCTTY's third parameter.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
term.c

diff --git a/term.c b/term.c
index fbdb165e41ab3c42f0770a28329d1477cf1e5ba9..a4b5b4857faf13ec8a138db6c679844b765823ee 100644 (file)
--- a/term.c
+++ b/term.c
@@ -326,6 +326,11 @@ int term_ioctl(struct tcb *tcp, long code, long arg)
                printxval(tcflsh_options, arg, "TC???");
                return 1;
 #endif
+#ifdef TIOCSCTTY
+       case TIOCSCTTY:
+               tprintf(", %ld", arg);
+               return 1;
+#endif
 
        /* ioctls with an indirect parameter displayed as modem flags */
 
@@ -425,9 +430,6 @@ int term_ioctl(struct tcb *tcp, long code, long arg)
 
        /* ioctls with no parameters */
 
-#ifdef TIOCSCTTY
-       case TIOCSCTTY:
-#endif
 #ifdef TIOCNOTTY
        case TIOCNOTTY:
 #endif