Fix typo in TTY detection

pull/16/head
Dave Vasilevsky 12 years ago
parent 154dc842a1
commit 9e4fedb7f3

@ -113,7 +113,7 @@ int main(int argc, char **argv) {
switch (op) { switch (op) {
case OP_WRITE: case OP_WRITE:
if (isatty(fileno(gOutFile)) == -1) if (isatty(fileno(gOutFile)) == 1)
usage("Refusing to output to a TTY"); usage("Refusing to output to a TTY");
pixz_write(tar, level); pixz_write(tar, level);
break; break;

Loading…
Cancel
Save