(At least for coreutils 8.28.)
---
 toys/other/stat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
From 63534ec68e54db87304291db1f7868aa8906a8c2 Mon Sep 17 00:00:00 2001
From: Elliott Hughes <e...@google.com>
Date: Thu, 28 Jun 2018 16:38:32 -0700
Subject: [PATCH] stat: `stat -f` uses %T rather than %t.

(At least for coreutils 8.28.)
---
 toys/other/stat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toys/other/stat.c b/toys/other/stat.c
index fafd29a..43b7349 100644
--- a/toys/other/stat.c
+++ b/toys/other/stat.c
@@ -177,7 +177,7 @@ void stat_main(void)
     format = flagf ? "%n %i %l %t %s %S %b %f %a %c %d" :
                      "%n %s %b %f %u %g %D %i %h %t %T %X %Y %Z %o";
   } else format = flagf
-    ? "  File: \"%n\"\n    ID: %i Namelen: %l    Type: %t\n"
+    ? "  File: \"%n\"\n    ID: %i Namelen: %l    Type: %T\n"
       "Block Size: %s    Fundamental block size: %S\n"
       "Blocks: Total: %b\tFree: %f\tAvailable: %a\n"
       "Inodes: Total: %c\tFree: %d"
-- 
2.18.0.rc2.346.g013aa6912e-goog

_______________________________________________
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to