Re: cvtsudoers wrong input
"Todd C. Miller" <[email protected]> Fri, 23 Aug 2019 08:02:41 -0600
| Newsgroups | gmane.comp.tools.sudo.devel |
|---|---|
| Message-ID | <[email protected]> |
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 ____________________________________________________________ sudo-workers mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-workers