Skip to content

double "=" signs in the command alias cause BadAliasException #19

@git4al

Description

@git4al

Hi,
Thank you for putting this library together. Very handy.
I ran into an issue with my sudoers file. I've got a command in there that uses "=" as part of command argument which conflicts with your error checking and throws an exception:
pysudoers.BadAliasException: bad alias: Cmnd_Alias CACAO_ADM=/home/cacaoadm set-param jdmk-home=/export/home/lib/private

Is it possible to adjust the error check ? I could ignore this exception in my script but it can potentially miss an analysis of the command. Thank you !

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