From: Rob Landley Date: Thu, 5 Sep 2013 00:09:00 +0000 (-0500) Subject: Don't pad stat's %a field. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f747f730f4bd94e8266f4cb763fc0eb1cbf1948;p=platform%2Fupstream%2Ftoybox.git Don't pad stat's %a field. --- diff --git a/toys/other/stat.c b/toys/other/stat.c index c5c96fc..d603316 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];