Author: dteske
Date: Thu Nov 21 03:22:13 2013
New Revision: 258418
URL: http://svnweb.freebsd.org/changeset/base/258418

Log:
  Quote the interface name for good measure.

Modified:
  head/usr.sbin/bsdconfig/networking/share/device.subr

Modified: head/usr.sbin/bsdconfig/networking/share/device.subr
==============================================================================
--- head/usr.sbin/bsdconfig/networking/share/device.subr        Thu Nov 21 
03:01:28 2013        (r258417)
+++ head/usr.sbin/bsdconfig/networking/share/device.subr        Thu Nov 21 
03:22:13 2013        (r258418)
@@ -278,22 +278,23 @@ f_dialog_menu_netdev_edit()
                          msg=$( printf "$msg_scanning_for_dhcp" "$interface" )
                          if [ "$USE_XDIALOG" ]; then
                                (
-                                 f_quietly ifconfig $interface delete
-                                 f_quietly dhclient $interface
+                                 f_quietly ifconfig "$interface" delete
+                                 f_quietly dhclient "$interface"
                                ) |
                                  f_xdialog_info "$msg"
                          else
                                f_dialog_info "$msg"
-                               f_quietly ifconfig $interface delete
-                               f_quietly dhclient $interface
+                               f_quietly ifconfig "$interface" delete
+                               f_quietly dhclient "$interface"
                          fi
                        )
                        retval=$?
                        trap 'interrupt' SIGINT
                        if [ $retval -eq $DIALOG_OK ]; then
                                dhcp=1
-                               ipaddr=$( f_ifconfig_inet $interface )
-                               netmask=$( f_ifconfig_netmask $interface )
+                               f_ifconfig_inet "$interface" ipaddr
+                               f_ifconfig_inet6 "$interface" ipaddr6
+                               f_ifconfig_netmask "$interface" netmask
                                options=
 
                                # Fixup search/domain in resolv.conf(5)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to