`CWD` error message is inaccurate
```console
$ visudo -V
visudo version 1.9.17p2
visudo grammar version 50
$ echo 'user1 ALL = CWD=*.d /bin/sh' | visudo -c -
stdin:1:17: values for "CWD" must start with a '/', '~', or '*'
user1 ALL = CWD=*.d /bin/sh
^~~
```
Here the problem is that the `*` has trailing token.
0 条评论