diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-12 08:53:06 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-12 08:53:06 +0100 |
commit | 5243969ba23281e6d4320b55cae666321c17d2a2 (patch) | |
tree | 4b817b4a448c91e916eb4169eb5c6af9818ac440 /sys/src/cmd | |
parent | 36d2092a3330692c43f33ef4e05edc997c05ecad (diff) |
ndb/dnstcp: -x specifies the mountmoint
Diffstat (limited to 'sys/src/cmd')
-rw-r--r-- | sys/src/cmd/ndb/dnstcp.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/src/cmd/ndb/dnstcp.c b/sys/src/cmd/ndb/dnstcp.c index 3a9ee2955..475c30fd3 100644 --- a/sys/src/cmd/ndb/dnstcp.c +++ b/sys/src/cmd/ndb/dnstcp.c @@ -68,16 +68,17 @@ main(int argc, char *argv[]) break; }ARGEND - if(debug < 2) - debug = 0; - if(argc > 0) getcaller(argv[0]); cfg.inside = 1; dninit(); - snprint(mntpt, sizeof mntpt, "/net%s", ext); + if(*ext == '/') + snprint(mntpt, sizeof mntpt, "%s", ext); + else + snprint(mntpt, sizeof mntpt, "/net%s", ext); + if(myipaddr(ipaddr, mntpt) < 0) sysfatal("can't read my ip address"); dnslog("dnstcp call from %s to %I", caller, ipaddr); |