projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f514143
)
Don't pad stat's %a field.
author
Rob Landley
<rob@landley.net>
Thu, 5 Sep 2013 00:09:00 +0000
(19:09 -0500)
committer
Rob Landley
<rob@landley.net>
Thu, 5 Sep 2013 00:09:00 +0000
(19:09 -0500)
toys/other/stat.c
patch
|
blob
|
history
diff --git
a/toys/other/stat.c
b/toys/other/stat.c
index
c5c96fc
..
d603316
100644
(file)
--- 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("%
04
lo", stat->st_mode & ~S_IFMT);
+ if (type == 'a') xprintf("%lo", stat->st_mode & ~S_IFMT);
else if (type == 'A') {
char str[11];