[sudo-users] [sudo-workers] Padding supoort for sudoOrder increment in cvtsudoers
Todd C. Miller
Todd.Miller at sudo.ws
Wed Oct 24 10:14:08 MDT 2018
On Wed, 24 Oct 2018 00:14:05 +0200, Daniele Palumbo wrote:
> I am so going to
> - fix the padding based on number of digits
> - thrown an error if the sudoOrder padded number is reaching the upper limit
> of the padding digits provided. Based on a quick view of the code, this be e
> asily done when some output has been already written, not so easy before the
> output is started to be written.
> Before digging, do you think there is a cleaver method to stop with error bef
> ore writing some output?
I don't think there is a good way to check the limit until the
output is written.
I've updated https://bugzilla.sudo.ws/show_bug.cgi?id=856 with an
updated patch that works for me.
More information about the sudo-users