Re: Error/Warning word in visudo output
"Todd C. Miller" <[email protected]> Wed, 22 Feb 2017 08:37:29 -0700
| Newsgroups | gmane.comp.tools.sudo.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 21 Feb 2017 11:00:11 -0700, "Todd C. Miller" wrote: > By definition, in strict mode there are no warnings--everything is > an error. My reasoning was that since you know whether you are > runing in strict mode or not, the warning vs. error prefix was > extraneous. I'm willing to be convinced otherwise, though. Actually, this is no longer true. The "unused alias" warning is always a warning, even in strict mode. This was changed in 2014 in response to RedHat bugzilla #604297. > I also had some trouble deciding where the warning/error text would > go now that the message includes file and line number information. > Perhaps it is simplest to just replace the "visudo:" prefix with > "Warning:" or "Error:". This is what I ended up doing. https://www.sudo.ws/repos/sudo/rev/ad4dc6e34222 - todd ____________________________________________________________ sudo-workers mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-workers