]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): On systems with d_type, directories_first only
authorJim Meyering <jim@meyering.net>
Wed, 3 May 2006 10:03:58 +0000 (10:03 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 3 May 2006 10:03:58 +0000 (10:03 +0000)
implies format_needs_type, not format_needs_stat.

src/ls.c

index e986dce6ab2cf8b75fcf1f46bf4d6255958b4491..6afca7ed68496af8c0dbc1dada612fbe8ab7ce73 100644 (file)
--- 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)
     {