From: Jim Meyering Date: Fri, 22 Aug 2003 08:20:05 +0000 (+0000) Subject: (do_stat): For link count at end of line, use %h format, X-Git-Tag: v5.0.91~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c63799d99daaa4b03673719c106e470a1087a4c6;p=thirdparty%2Fcoreutils.git (do_stat): For link count at end of line, use %h format, instead of %-5h. The latter would make stat emit trailing spaces. --- diff --git a/src/stat.c b/src/stat.c index ace2b6936d..c8e5dde4e6 100644 --- a/src/stat.c +++ b/src/stat.c @@ -674,7 +674,7 @@ do_stat (char const *filename, int follow_links, int terse, format = " File: %N\n" " Size: %-10s\tBlocks: %-10b IO Block: %-6o %F\n" - "Device: %Dh/%dd\tInode: %-10i Links: %-5h\n" + "Device: %Dh/%dd\tInode: %-10i Links: %h\n" "Access: (%04a/%10.10A) Uid: (%5u/%8U) Gid: (%5g/%8G)\n" "Access: %x\n" "Modify: %y\n" "Change: %z\n"; }