diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-09-09 19:59:41 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-09-09 19:59:41 +0000 |
commit | 37f88a86496e962627445e664dfb714bccb76fb5 (patch) | |
tree | db3f27fb26b184bbede07979f087254f9fb39e6c /bin/sh | |
parent | e087d7c1f4284230d0bb45be82d3adb3fde0e063 (diff) | |
download | FreeBSD-src-37f88a86496e962627445e664dfb714bccb76fb5.zip FreeBSD-src-37f88a86496e962627445e664dfb714bccb76fb5.tar.gz |
Fix the error message if the mask that is passed to umask -S contains
non-digits.
Diffstat (limited to 'bin/sh')
-rw-r--r-- | bin/sh/miscbltin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/miscbltin.c b/bin/sh/miscbltin.c index 51ecee6..d36f9e3 100644 --- a/bin/sh/miscbltin.c +++ b/bin/sh/miscbltin.c @@ -268,7 +268,7 @@ umaskcmd(int argc __unused, char **argv) mask = 0; do { if (*ap >= '8' || *ap < '0') - error("Illegal number: %s", argv[1]); + error("Illegal number: %s", *argptr); mask = (mask << 3) + (*ap - '0'); } while (*++ap != '\0'); umask(mask); |