Don't pad stat's %a field.
authorRob Landley <rob@landley.net>
Thu, 5 Sep 2013 00:09:00 +0000 (19:09 -0500)
committerRob Landley <rob@landley.net>
Thu, 5 Sep 2013 00:09:00 +0000 (19:09 -0500)
toys/other/stat.c

index c5c96fc..d603316 100644 (file)
@@ -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];