← Commit list

3bd31ebc9

Matt Kraai
Matt Kraai
2002-03-08
FAILED Duration: 399s

Subject

* fileutils/ls.c (showfiles): Display multiple short names on a line.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/ls.c+1 -6
@@ -443,12 +443,7 @@ static void showfiles(struct dnode **dn, int nfiles)
if (column_width < len)
column_width= len;
}
- if (column_width >= 6)
- ncols = (int)(terminal_width / (column_width + COLUMN_GAP));
- else {
- ncols = 1;
- column_width = COLUMN_WIDTH;
- }
+ ncols = (int)(terminal_width / (column_width + COLUMN_GAP));
#else
ncols= TERMINAL_WIDTH;
#endif