From: Denys Vlasenko Date: Mon, 12 Mar 2012 22:34:13 +0000 (+0100) Subject: Treat -ff without -o FILE as single -f X-Git-Tag: v4.7~115 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=328bf250bde8167cec6f2f5bf35463fb4ffb6f9f;p=strace Treat -ff without -o FILE as single -f * strace.c (init): Treat -ff without -o FILE as single -f. Signed-off-by: Denys Vlasenko --- diff --git a/strace.c b/strace.c index e581882a..27b64b09 100644 --- a/strace.c +++ b/strace.c @@ -1356,6 +1356,10 @@ init(int argc, char *argv[]) } else if (followfork <= 1) outf = strace_fopen(outfname); + } else { + /* -ff without -o FILE is the same as single -f */ + if (followfork > 1) + followfork = 1; } if (!outfname || outfname[0] == '|' || outfname[0] == '!') {