commit | 328bf250bde8167cec6f2f5bf35463fb4ffb6f9f | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Mon Mar 12 23:34:13 2012 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Mon Mar 12 23:34:13 2012 +0100 |
tree | 0d8f4ae59015b693ee1fab66cbfeb642af0f4cee | |
parent | 558e5127fb68a7ab5c5ba6d8e976efd77e396cc2 [diff] |
Treat -ff without -o FILE as single -f * strace.c (init): Treat -ff without -o FILE as single -f. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/strace.c b/strace.c index e581882..27b64b0 100644 --- a/strace.c +++ b/strace.c
@@ -1356,6 +1356,10 @@ } 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] == '!') {