Red Hat Bugzilla – Bug 432395
visudo reports incorrect line numbers in error messages
Last modified: 2008-02-21 11:46:22 EST
Description of problem:
If an error is found by 'visudo', it gives an error with the line number.
However, it fails to count lines continued with backslashes, which are used in
the installed defaults. It also starts off counting the first line as 2. My
guess is that the latter is a known problem, because the error message states
"... near line %d", but maybe this could be fixed as well.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run visudo
2. put an intentional typo at the end of the file
>>> sudoers file: syntax error, line 89 <<<
>>> sudoers file: syntax error, line 94 <<<
*** This bug has been marked as a duplicate of 428546 ***