diff options
| author | kre <kre@NetBSD.org> | 2022-04-16 14:23:36 +0000 |
|---|---|---|
| committer | kre <kre@NetBSD.org> | 2022-04-16 14:23:36 +0000 |
| commit | 078eea82ddbeb00a206c5d412296e261f7e7e642 (patch) | |
| tree | e5b25321c117014685cf5681ad8970285d5a1536 /sys/dev | |
| parent | b0923ea0cf4e5f206f90318ac09b926263e693d0 (diff) | |
While doing the previous change, I noticed that when used in a
particularly perverse way, the error message for a bad octal
constant as the new umask value could incorrectly claim that the
-S option (which would need to be present to cause this issue)
was the detected bad value. Fix that to report the actual
incorrect arg.
And while fiddling, also check for args to umask that are too big
to be sane mask values (the biggest permitted is 07777) and use
mode_t as the mask variable type, rather than int.
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions
