]> granicus.if.org Git - strace/commitdiff
Fix pathtrace match for pipe2 syscall
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 12 Feb 2016 16:15:23 +0000 (16:15 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 13 Feb 2016 00:57:00 +0000 (00:57 +0000)
* pathtrace.c (pathtrace_match): As pipe2 syscall has no descriptors
or paths to test, move SEN_pipe2 to the appropriate category.

pathtrace.c

index e72cdf7170914ee56792ceda315cc000691e0bc5..b2271c457b2fc147c58ab0dff339b8019b73c4e4 100644 (file)
@@ -181,7 +181,6 @@ pathtrace_match(struct tcb *tcp)
        case SEN_name_to_handle_at:
        case SEN_newfstatat:
        case SEN_openat:
-       case SEN_pipe2:
        case SEN_readlinkat:
        case SEN_unlinkat:
        case SEN_utimensat:
@@ -327,6 +326,7 @@ pathtrace_match(struct tcb *tcp)
        case SEN_memfd_create:
        case SEN_perf_event_open:
        case SEN_pipe:
+       case SEN_pipe2:
        case SEN_printargs:
        case SEN_socket:
        case SEN_socketpair: