Bug 281 - visudo should print argv[0] when reporting errors
visudo should print argv[0] when reporting errors
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Visudo
1.7.0
PC NetBSD
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-03 18:20 MST by Jan Schaumann
Modified: 2008-03-06 12:45 MST (History)
0 users

See Also:


Attachments
print progname: error (1.98 KB, patch)
2008-03-03 18:20 MST, Jan Schaumann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.