[Bug 230243] freebsd-update prints error output to stdout instead of stderr [patch]
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jul 31 16:00:59 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230243
Bug ID: 230243
Summary: freebsd-update prints error output to stdout instead
of stderr [patch]
Product: Base System
Version: 11.2-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: rlwestlund at gmail.com
Created attachment 195691
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=195691&action=edit
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.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list