win can return >1 for isatty

pull/112/head
Dave Vasilevsky 5 months ago
parent 7ed15497be
commit ebeb225a07

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

Loading…
Cancel
Save