Fix the error message if the mask that is passed to umask -S contains
non-digits.
This commit is contained in:
parent
e087d7c1f4
commit
37f88a8649
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user