svn commit: r293404 - user/pho/stress2

Gleb Smirnoff glebius at FreeBSD.org
Fri Jan 8 01:12:28 UTC 2016


Author: glebius
Date: Fri Jan  8 01:12:27 2016
New Revision: 293404
URL: https://svnweb.freebsd.org/changeset/base/293404

Log:
  In mycc() make $file local, to avoid overwriting of the global variable,
  that could be used in scripts. misc/sendfile5.sh uses it.

Modified:
  user/pho/stress2/default.cfg

Modified: user/pho/stress2/default.cfg
==============================================================================
--- user/pho/stress2/default.cfg	Fri Jan  8 00:56:41 2016	(r293403)
+++ user/pho/stress2/default.cfg	Fri Jan  8 01:12:27 2016	(r293404)
@@ -102,6 +102,8 @@ CC=${CC:-cc}
 top=`dirname $(pwd)`	# cwd for the all.sh script
 STRESS2BIN=${STRESS2BIN:-$top/bin}
 mycc () {	# "-o" must be first argument
+	local file;
+
 	[ "$1" = "-o" ] && file=`basename $2`
 	if [ "$BMODE" = "1" ]; then
 		$CC $@ || return


More information about the svn-src-user mailing list