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>
This commit is contained in:
Denys Vlasenko 2012-03-12 23:34:13 +01:00
parent 558e5127fb
commit 328bf250bd

View File

@ -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] == '!') {