summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-10-05 20:17:09 +0000
committerJim Meyering <jim@meyering.net>1996-10-05 20:17:09 +0000
commit7c17502e7498fc5992126b6660d1c80a12f97b1c (patch)
treee1e7b24b5a5277036c9b3c0ca9e9b3b60efc963b /src
parent4a2eda04aa50675d1b0d235e2b90a5a41f6fac25 (diff)
downloadcoreutils-7c17502e7498fc5992126b6660d1c80a12f97b1c.tar.xz
(print_long_format): Add support for Cray's migrated dmf files.
From Johan Danielsson.
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)