From cc4b76cb0b8493f61c5d654fcbbaa7a9e5b29eab Mon Sep 17 00:00:00 2001 From: Dave Vasilevsky Date: Sun, 14 Oct 2012 01:45:22 -0400 Subject: [PATCH] Output to a TTY is ok for listing\! --- pixz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixz.c b/pixz.c index 7bff608..130dc37 100644 --- a/pixz.c +++ b/pixz.c @@ -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) {