Bug 432395 - visudo reports incorrect line numbers in error messages
Summary: visudo reports incorrect line numbers in error messages
Keywords:
Status: CLOSED DUPLICATE of bug 428546
Alias: None
Product: Fedora
Classification: Fedora
Component: sudo
Version: 7
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Peter Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-11 19:43 UTC by Joe Krahn
Modified: 2008-02-21 16:46 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-02-21 16:46:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Joe Krahn 2008-02-11 19:43:27 UTC
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):
sudo-1.6.8p12-14.fc7

How reproducible:
Always

Steps to Reproduce:
1. run visudo
2. put an intentional typo at the end of the file
3. save
  
Actual results:
>>> sudoers file: syntax error, line 89 <<<

Expected results:
>>> sudoers file: syntax error, line 94 <<<


Additional info:

Comment 1 Peter Vrabec 2008-02-21 16:46:22 UTC

*** This bug has been marked as a duplicate of 428546 ***


Note You need to log in before you can comment on or make changes to this bug.