ash: use a more typical form of "print four octal digits" format
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 7 Oct 2015 15:57:53 +0000 (17:57 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 7 Oct 2015 15:57:53 +0000 (17:57 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c

index ab8ec006f5fa5cbfb5ca6f3d4e8e463bfca61235..b835415b59bf43cc832177d8b539c92d7db1d91d 100644 (file)
@@ -12854,7 +12854,7 @@ umaskcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
                        *p = '\0';
                        puts(buf);
                } else {
-                       out1fmt("%.4o\n", mask);
+                       out1fmt("%04o\n", mask);
                }
        } else {
                char *modestr = *argptr;