svn commit: r337588 - in stable: 10/usr.sbin/sysrc 11/usr.sbin/sysrc 9/usr.sbin/sysrc

Devin Teske dteske at FreeBSD.org
Fri Aug 10 20:08:01 UTC 2018


Author: dteske
Date: Fri Aug 10 20:07:59 2018
New Revision: 337588
URL: https://svnweb.freebsd.org/changeset/base/337588

Log:
  MFC SVN r336350: Send sysrc(8) error message to stderr (not stdout)
  
  PR:		bin/229806
  Reported by:	Andreas Sommer <andreas.sommer87 at googlemail.com>
  Sponsored by:	Smule, Inc.

Modified:
  stable/9/usr.sbin/sysrc/sysrc
Directory Properties:
  stable/9/   (props changed)
  stable/9/usr.sbin/   (props changed)
  stable/9/usr.sbin/sysrc/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/10/usr.sbin/sysrc/sysrc
  stable/11/usr.sbin/sysrc/sysrc
Directory Properties:
  stable/10/   (props changed)
  stable/11/   (props changed)

Modified: stable/9/usr.sbin/sysrc/sysrc
==============================================================================
--- stable/9/usr.sbin/sysrc/sysrc	Fri Aug 10 20:07:00 2018	(r337587)
+++ stable/9/usr.sbin/sysrc/sysrc	Fri Aug 10 20:07:59 2018	(r337588)
@@ -674,7 +674,8 @@ while [ $# -gt 0 ]; do
 	*)
 		if ! IGNORED=$( f_sysrc_get "$NAME?" ); then
 			[ "$IGNORE_UNKNOWNS" -o "$QUIET" ] ||
-				echo "$pgm: unknown variable '$NAME'"
+				f_err "%s: unknown variable '%s'\n" \
+					"$pgm" "$NAME"
 			shift 1
 			status=$FAILURE
 			continue


More information about the svn-src-stable-9 mailing list