commit | 08b1034f4f0b910660a8b1a537f86462fa41ebad | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Fri Nov 19 02:38:58 1999 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Fri Nov 19 02:38:58 1999 +0000 |
tree | 4a39b721f4654120bff47fcd7cd95906172ec16f | |
parent | ab746abfc05c28824b25e12b86a538b09fb9275d [diff] [blame] |
Stuf
diff --git a/coreutils/ls.c b/coreutils/ls.c index f09cbbc..0558bb2 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c
@@ -475,7 +475,7 @@ /* choose a display format */ if (display_fmt == FMT_AUTO) - display_fmt = isatty(STDOUT_FILENO) ? FMT_COLUMNS : FMT_SINGLE; + display_fmt = isatty(fileno(stdout)) ? FMT_COLUMNS : FMT_SINGLE; if (argi < argc - 1) opts |= DISP_DIRNAME; /* 2 or more items? label directories */ #ifdef FEATURE_AUTOWIDTH