mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Fix the error message if the mask that is passed to umask -S contains
non-digits.
This commit is contained in:
parent
87a59250b5
commit
e4c880af3f
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue