9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] APE dial(2) diffs to honour /net.alt
@ 2001-10-18  8:18 geoff
  0 siblings, 0 replies; only message in thread
From: geoff @ 2001-10-18  8:18 UTC (permalink / raw)
  To: 9fans

; pwd
/sys/src/ape/lib/net
; diff `{yesterday .} .
diff /n/dump/2001/1017/sys/src/ape/lib/net/dial.c ./dial.c
65a66
> 	char netdir[128], csname[NETPATHLEN];
67a69
> 	char *slp;
80a83,90
> 	slp = strrchr(net, '/');
> 	if (slp != 0) {
> 		*slp++ = '\0';
> 		strcpy(netdir, net);
> 		memmove(net, slp, strlen(slp)+1);
> 	} else
> 		strcpy(netdir, "/net");
> 
82c92,93
< 	fd = open("/net/cs", O_RDWR);
---
> 	sprintf(csname, "%s/cs", netdir);
> 	fd = open(csname, O_RDWR);
87c98
< 		sprintf(clone, "/net/%s/clone", net);
---
> 		sprintf(clone, "%s/%s/clone", netdir, net);


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

only message in thread, other threads:[~2001-10-18  8:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-18  8:18 [9fans] APE dial(2) diffs to honour /net.alt geoff

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).