[sudo-workers] cvtsudoers wrong input
Todd C. Miller
Todd.Miller at sudo.ws
Fri Aug 23 08:02:41 MDT 2019
On Fri, 23 Aug 2019 15:34:24 +0200, Radovan Sroka wrote:
> "cvtsudoers" silently ends when expected input is LDIF but the actual input
> is "sudoers".
>
> cat /etc/sudoers | cvtsudoers -b redhat.com -i LDIF
> # echo $?
> 0
Currently, the LDIF parse just ignores what it does not recognize
which is why it doesn't print an error.
> I think it should return 1 and print some error message.
Yes, that would be more user-friendly. It should probably exit
with a non-zero status if nothing was parsed too.
- todd
More information about the sudo-workers
mailing list