diff options
author | Rob Landley <rob@landley.net> | 2013-09-04 19:09:00 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-09-04 19:09:00 -0500 |
commit | 1f747f730f4bd94e8266f4cb763fc0eb1cbf1948 (patch) | |
tree | 4b67b223fa3c5a7553bf66c5f3782d71593b5a1b /toys/other | |
parent | f514143a3321866636c3da8c60df8f2a176607a8 (diff) | |
download | toybox-1f747f730f4bd94e8266f4cb763fc0eb1cbf1948.tar.gz |
Don't pad stat's %a field.
Diffstat (limited to 'toys/other')
-rw-r--r-- | toys/other/stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |