Bug 230243 - freebsd-update prints error output to stdout instead of stderr [patch]
Summary: freebsd-update prints error output to stdout instead of stderr [patch]
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.2-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-31 16:00 UTC by rlwestlund
Modified: 2018-08-07 17:17 UTC (History)
1 user (show)

See Also:


Attachments
Diff for /usr/sbin/freebsd-update (8.19 KB, patch)
2018-07-31 16:00 UTC, rlwestlund
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rlwestlund 2018-07-31 16:00:56 UTC
Created attachment 195691 [details]
Diff for /usr/sbin/freebsd-update

If the /usr/sbin/freebsd-update script fails, it prints messages explaining why to stdout instead of stderr. Running it from a command-line, this works fine, but it's a problem when you want to run it from a Go script and only print the errors but not the normal output, as I was doing when I found this. I've attached a diff that should fix this.

I've never done this before, so sorry if I'm doing it wrong, or if this actually isn't a bug for some reason I don't understand.