summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ls.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ls.c b/src/ls.c
index b04a3b002..10f654e6d 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -2025,7 +2025,12 @@ print_long_format (const struct fileinfo *f)
char *p;
time_t when;
+#ifdef HAVE_ST_DM_MODE
+ mode_string (f->stat.st_dm_mode, modebuf);
+#else
mode_string (f->stat.st_mode, modebuf);
+#endif
+
modebuf[10] = '\0';
switch (time_type)