Output to a TTY is ok for listing\!

stream
Dave Vasilevsky 12 years ago
parent 7518c32900
commit cc4b76cb0b

@ -101,7 +101,7 @@ int main(int argc, char **argv) {
die("Can't open input file");
if (opath && !(gOutFile = fopen(opath, "w")))
die("Can't open output file");
if (isatty(fileno(gOutFile)) == 1)
if (op != OP_LIST && isatty(fileno(gOutFile)) == 1)
usage("Refusing to output to a TTY");
switch (op) {

Loading…
Cancel
Save