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

non-digits.
This commit is contained in:
Stefan Farfeleder 2005-09-09 19:59:41 +00:00
parent 87a59250b5
commit e4c880af3f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149918

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