From ec046f74a31e4315f4546ec5602f56e7d467082d Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 7 Oct 2015 17:57:53 +0200 Subject: ash: use a more typical form of "print four octal digits" format Signed-off-by: Denys Vlasenko --- shell/ash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/ash.c b/shell/ash.c index ab8ec006f..b835415b5 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -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; -- cgit v1.2.3