From 1f747f730f4bd94e8266f4cb763fc0eb1cbf1948 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 4 Sep 2013 19:09:00 -0500 Subject: Don't pad stat's %a field. --- toys/other/stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/other/stat.c') diff --git a/toys/other/stat.c b/toys/other/stat.c index c5c96fcb..d6033164 100644 --- a/toys/other/stat.c +++ b/toys/other/stat.c @@ -62,7 +62,7 @@ static void print_stat(char type) { struct stat *stat = (struct stat *)&TT.stat; - if (type == 'a') xprintf("%04lo", stat->st_mode & ~S_IFMT); + if (type == 'a') xprintf("%lo", stat->st_mode & ~S_IFMT); else if (type == 'A') { char str[11]; -- cgit v1.2.3