aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-06-28 16:30:38 -0700
committerRob Landley <rob@landley.net>2018-06-28 21:49:01 -0500
commit8f32a56c8e43e2d80384ebbc08f646cb29c0db7b (patch)
tree75da8f3456c6c6662a7839b7e089ab429e529b7c /toys
parentda08d787916c0ec9f6c72dabedc255c1b63c1fc4 (diff)
downloadtoybox-8f32a56c8e43e2d80384ebbc08f646cb29c0db7b.tar.gz
stat: fix %a in default output.
`stat -c %a` doesn't output a leading zero, but `stat` does.
Diffstat (limited to 'toys')
-rw-r--r--toys/other/stat.c2
1 files changed, 1 insertions, 1 deletions
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;