svn commit: r253924 - in head: etc etc/rc.d share/man/man5

Hiroki Sato hrs at FreeBSD.org
Wed Sep 4 20:21:20 UTC 2013


Alan Somers <asomers at freebsd.org> wrote
  in <CAOtMX2hjMGUwunYAz77J09edxRW_BCGuy8fbN63SDYdSoui9Lg at mail.gmail.com>:

as> With this revision, I am unable to down an ipv4 interface using
as> "/etc/rc.d/netif stop em1".  When I try, ipv4_down cannot find the address
as> to delete, because "$_inet" begins with a tab character and the therefore
as> it matches the "*)" rule in the case statement.  Presumably "$_inet"
as> doesn't always begin with a tab, so this patch will match with or without
as> the tab.  Does it look good to you?
as>
as> --- /usr/home/alans/freebsd/head/etc/network.subr       2013-08-20
as> 19:33:30.6712
as> 28832 +0000
as> +++ /etc/network.subr   2013-08-22 15:49:53.000000000 +0000
as> @@ -661,16 +668,16 @@
as>         for _inet in $inetList ; do
as>                 # get rid of extraneous line
as>                 case $_inet in
as> -               "")             break ;;
as> -               inet\ *)        ;;
as> -               *)              continue ;;
as> +               "")                             break ;;
as> +               \       inet\ *|inet\ *)        ;;
as> +               *)                              continue ;;
as>                 esac
as>                 [ -z "$_inet" ] && break

 Sorry for the delay getting back to you.  Can you try the attached
 patch?  It includes some other fixes but I think adding \t to tr(1)
 should be enough to solve the problem.

-- Hiroki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: network.subr.20130905-1.diff
Type: text/x-patch
Size: 1183 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20130905/66735f2b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20130905/66735f2b/attachment.sig>


More information about the svn-src-all mailing list