Skip to content

Broken error message for files included by @includedir #525

@squell

Description

@squell

If there's a problem with a file in an @includedir (typically /etc/sudoers.d), such as it being owned by the wrong user or having write permissions, sudo would give an error message. Since commit ff0b6be that error message leaves out the file name, e.g. instead of:

$ sudo true
sudo: /etc/sudoers.d/a is world writable

one sees:

$ sudo true
sudo:  is world writable

Discovered by the sudo-rs regression testing framework: trifectatechfoundation/sudo-rs#1517

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