mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
convert_ifapi: handle the special case of getting interface name
Reviewed by: jhibbits Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50445
This commit is contained in:
1 file changed
+1
-1
@@ -157,7 +157,7 @@ handle_misc() {
|
||||
old=`echo "$__ifp__->if_"${word}`
|
||||
new=`echo "if_get"${word}"($__ifp__)"`
|
||||
new=`echo $new | sed -e 's/&/\\\&/'`
|
||||
line=`echo $line| sed -e's/'$old'/'$new'/g'`
|
||||
line=`echo $line| sed -e's/'$old'/'$new'/g' | sed -e 's/if_getxname/if_name/'`
|
||||
return 0;
|
||||
fi
|
||||
return 1;
|
||||
|
||||
Reference in new issue
Block a user