Skip to content

CWD error message is inaccurate #522

@e-kwsm

Description

@e-kwsm
$ 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions