ref: 5243969ba23281e6d4320b55cae666321c17d2a2
parent: 36d2092a3330692c43f33ef4e05edc997c05ecad
author: cinap_lenrek <[email protected]>
date: Tue Jan 12 03:53:06 EST 2016
ndb/dnstcp: -x specifies the mountmoint
--- a/sys/src/cmd/ndb/dnstcp.c
+++ b/sys/src/cmd/ndb/dnstcp.c
@@ -68,9 +68,6 @@
break;
}ARGEND
- if(debug < 2)
- debug = 0;
-
if(argc > 0)
getcaller(argv[0]);
@@ -77,7 +74,11 @@
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);