about summary refs log tree commit diff
path: root/lr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lr.c')
-rw-r--r--lr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lr.c b/lr.c
index 3863603..de4e765 100644
--- a/lr.c
+++ b/lr.c
@@ -12,7 +12,6 @@ TODO:
 - avoid stat in recurse
 - multiple -t
 - don't default to ./ prefix
-- %m %y
 */
 
 #define _GNU_SOURCE
@@ -706,6 +705,9 @@ print(const void *nodep, const VISIT which, const int depth)
 				case 'M':
 					print_mode(fi->sb.st_mode);
 					break;
+				case 'y':
+					putchar("0pcCd?bBf?l?s???"[(fi->sb.st_mode >> 12) & 0x0f]);
+					break;
 
 				case 'g':
 					{