aboutsummaryrefslogtreecommitdiff
path: root/coreutils/ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r--coreutils/ls.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c
index d8cfe27d3..3c659294c 100644
--- a/coreutils/ls.c
+++ b/coreutils/ls.c
@@ -1241,6 +1241,12 @@ int ls_main(int argc UNUSED_PARAM, char **argv)
1241 option_mask32 |= OPT_dirs_first; 1241 option_mask32 |= OPT_dirs_first;
1242 } 1242 }
1243 1243
1244#if ENABLE_FEATURE_EXTRA_FILE_DATA
1245 /* Enable accurate link counts for directories */
1246 if (opt & OPT_l)
1247 count_subdirs(NULL);
1248#endif
1249
1244 argv += optind; 1250 argv += optind;
1245 if (!argv[0]) 1251 if (!argv[0])
1246 *--argv = (char*)"."; 1252 *--argv = (char*)".";