Bug 281

Summary: visudo should print argv[0] when reporting errors
Product: Sudo Reporter: Jan Schaumann <jschauma>
Component: VisudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.7.0   
Hardware: PC   
OS: NetBSD   
Attachments: print progname: error

Description Jan Schaumann 2008-03-03 18:20:02 MST
Created attachment 222 [details]
print progname: error

If you invoke visudo and encounter an error, it will just print the error message.  This makes it difficult to distinguish this error from any other errors if you invoke visudo from within another tool.

It should, in good old unix fashion, print the program name as the first item before printing any errors or warnings.
Comment 1 Todd C. Miller 2008-03-06 12:45:21 MST
Fixed in sudo 1.7b3.