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) {
case OP_WRITE:
if (isatty(fileno(gOutFile)) == -1)
if (isatty(fileno(gOutFile)) == 1)
usage("Refusing to output to a TTY");
pixz_write(tar, level);
break;

Loading…
Cancel
Save