about summary refs log tree commit diff
path: root/lr.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-10-23 12:18:38 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2015-10-23 12:18:38 +0200
commit81fe67648745971479dabd27153caa246cab6390 (patch)
treee637191501c10245d45ad7fd4b4bd3f1fa4482b1 /lr.c
parentc5e5927aceb9293312b2b4b5cf98e84c769f8c99 (diff)
downloadlr-81fe67648745971479dabd27153caa246cab6390.tar.gz
lr-81fe67648745971479dabd27153caa246cab6390.tar.xz
lr-81fe67648745971479dabd27153caa246cab6390.zip
add %y
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':
 					{