9front - general discussion about 9front
 help / color / mirror / Atom feed
* buggy code in ipv6on
@ 2015-12-28  1:09 arisawa
  0 siblings, 0 replies; only message in thread
From: arisawa @ 2015-12-28  1:09 UTC (permalink / raw)
  To: 9front

hello,

I found code in ipv6on which I believe bug:

rfork e
if (~ $#* 0) {
	netdir=/net
	ndbf=/lib/ndb/local
	gw=`{ndb/ipquery sys $sysname ipgw | sed 's/ipgw=//'}
}
if not {
	netdir=$1
	ndbf=$2
	if (~ $#* 2)
		# gw=()
-		gw=`{ndb/ipquery sys $sysname ipgw | sed 's/ipgw=//‘}
+		gw=`{ndb/ipquery -f $ndbf sys $sysname ipgw | sed 's/ipgw=//‘}
	if not
		gw=$3
}

current ipquery has -f option which is not described in the manual though.

Kenji Arisawa



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-12-28  1:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-28  1:09 buggy code in ipv6on arisawa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).