ash: use a more typical form of "print four octal digits" format

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2015-10-07 17:57:53 +02:00
parent 5711a2a4ad
commit ec046f74a3
1 changed files with 1 additions and 1 deletions

View 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;