9front - general discussion about 9front
 help / color / mirror / Atom feed
From: arisawa <arisawa@ar.aichi-u.ac.jp>
To: 9front@9front.org
Subject: buggy code in ipv6on
Date: Mon, 28 Dec 2015 10:09:01 +0900	[thread overview]
Message-ID: <9CE619CC-2362-4945-B3AB-11F99ECB5EBC@ar.aichi-u.ac.jp> (raw)

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



                 reply	other threads:[~2015-12-28  1:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9CE619CC-2362-4945-B3AB-11F99ECB5EBC@ar.aichi-u.ac.jp \
    --to=arisawa@ar.aichi-u.ac.jp \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).