Date: Tue, 31 Jul 2018 16:00:56 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 230243] freebsd-update prints error output to stdout instead of stderr [patch] Message-ID: <bug-230243-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230243 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@FreeBSD.org Reporter: rlwestlund@gmail.com Created attachment 195691 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D195691&action= =3Dedit 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 fin= e, 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230243-227>