changeset 1045:00e816559b1f draft

Don't pad stat's %a field.
author Rob Landley <rob@landley.net>
date Wed, 04 Sep 2013 19:09:00 -0500
parents e62df9eb3661
children 673fe8f927b0
files toys/other/stat.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/toys/other/stat.c	Wed Sep 04 01:40:41 2013 -0500
+++ b/toys/other/stat.c	Wed Sep 04 19:09:00 2013 -0500
@@ -62,7 +62,7 @@
 {
   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];