From 8f32a56c8e43e2d80384ebbc08f646cb29c0db7b Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 28 Jun 2018 16:30:38 -0700 Subject: stat: fix %a in default output. `stat -c %a` doesn't output a leading zero, but `stat` does. --- toys/other/stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/other') diff --git a/toys/other/stat.c b/toys/other/stat.c index 0622a525..35b15d9f 100644 --- a/toys/other/stat.c +++ b/toys/other/stat.c @@ -183,7 +183,7 @@ void stat_main(void) "Inodes: Total: %c\tFree: %d" : " File: %N\n Size: %s\t Blocks: %b\t IO Blocks: %B\t%F\n" "Device: %Dh/%dd\t Inode: %i\t Links: %h\n" - "Access: (%a/%A)\tUid: (%5u/%8U)\tGid: (%5g/%8G)\n" + "Access: (0%a/%A)\tUid: (%5u/%8U)\tGid: (%5g/%8G)\n" "Access: %x\nModify: %y\nChange: %z"; if (toys.optflags & FLAG_c) format = TT.fmt; -- cgit v1.2.3