svn commit: r223506 - head/etc

Sergey Kandaurov pluknet at FreeBSD.org
Fri Jun 24 14:56:38 UTC 2011


Author: pluknet
Date: Fri Jun 24 14:56:38 2011
New Revision: 223506
URL: http://svn.freebsd.org/changeset/base/223506

Log:
  Add support for string values with white spaces for ifconfig(8)
  parameters accepting them (such as description, group).
  
  Changes discussed on freebsd-rc.
  
  PR:		conf/156675
  Reported by:	"Alexander V. Chernikov" <melifaro att ipfw ru>
  Suggested by:	hrs
  Analyzed with:	Alexander V. Chernikov via IRC
  MFC after:	2 weeks

Modified:
  head/etc/network.subr

Modified: head/etc/network.subr
==============================================================================
--- head/etc/network.subr	Fri Jun 24 14:40:22 2011	(r223505)
+++ head/etc/network.subr	Fri Jun 24 14:56:38 2011	(r223506)
@@ -94,7 +94,7 @@ ifconfig_up()
 	# ifconfig_IF
 	ifconfig_args=`ifconfig_getargs $1`
 	if [ -n "${ifconfig_args}" ]; then
-		ifconfig $1 ${ifconfig_args}
+		eval ifconfig $1 ${ifconfig_args}
 		_cfg=0
 	fi
 


More information about the svn-src-all mailing list