summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-05-03 10:03:58 +0000
committerJim Meyering <jim@meyering.net>2006-05-03 10:03:58 +0000
commita99440c4eeba2b231d402a4c2d8883fcdff2a217 (patch)
treeda3f6c23fd3c66ffea73965755d086f1cdf1cb42 /src
parentf0562bdf485c63635782fa680f5fd3f456ffff37 (diff)
downloadcoreutils-a99440c4eeba2b231d402a4c2d8883fcdff2a217.tar.xz
(main): On systems with d_type, directories_first only
implies format_needs_type, not format_needs_stat.
Diffstat (limited to 'src')
-rw-r--r--src/ls.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ls.c b/src/ls.c
index e986dce6a..6afca7ed6 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -1229,11 +1229,12 @@ main (int argc, char **argv)
format_needs_stat = sort_type == sort_time || sort_type == sort_size
|| format == long_format
- || print_block_size
- || directories_first;
+ || print_block_size;
format_needs_type = (! format_needs_stat
- && (recursive || print_with_color
- || indicator_style != none));
+ && (recursive
+ || print_with_color
+ || indicator_style != none
+ || directories_first));
if (dired)
{