summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko2015-10-07 17:57:53 +0200
committerDenys Vlasenko2015-10-07 17:57:53 +0200
commitec046f74a31e4315f4546ec5602f56e7d467082d (patch)
treecbde46748dccfe3a63f3f0b4f175b95905bf5d5a /shell
parent5711a2a4ad51ad203a2ed4ffc72593e83920b36a (diff)
downloadbusybox-ec046f74a31e4315f4546ec5602f56e7d467082d.zip
busybox-ec046f74a31e4315f4546ec5602f56e7d467082d.tar.gz
ash: use a more typical form of "print four octal digits" format
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index ab8ec00..b835415 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;