From e4c880af3f112d682fe5b0ac5517521f48cdfc33 Mon Sep 17 00:00:00 2001 From: Stefan Farfeleder Date: Fri, 9 Sep 2005 19:59:41 +0000 Subject: [PATCH] Fix the error message if the mask that is passed to umask -S contains non-digits. --- bin/sh/miscbltin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sh/miscbltin.c b/bin/sh/miscbltin.c index 51ecee6c0cc..d36f9e39ffe 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);