aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/other/stat.c2
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];