Bugzilla – Bug 230
make nsd-* use stdout for non-error output
Last modified: 2009-01-19 15:16:12 CET
Created attachment 94 [details]
Suppressing output from nsdc works fine most of the time with `nsdc (command) > /dev/null`, however output from zonec is sent to stderr, also for informational messages.
Attached a patch to make zonec use stderr for error messages, and stdout for the rest.
Created attachment 95 [details]
skimmed through some other source files too:
$ svn st
Thanks for your patch.
I applied it, with the exception of the fprintf's in usage and version functions: The usage function may be called when a commandline error occurs. Since it might not be the expected behavior, the usage messages is printed to stderr. The same argument can be used for version.
I hope this is sufficient output suppressing.