Fix the error message if the mask that is passed to umask -S contains

non-digits.
This commit is contained in:
stefanf 2005-09-09 19:59:41 +00:00
parent e087d7c1f4
commit 37f88a8649

View File

@ -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);