diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib9/post9p.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/lib9/post9p.c b/src/lib9/post9p.c index 44c09431..37b6b80f 100644 --- a/src/lib9/post9p.c +++ b/src/lib9/post9p.c @@ -8,11 +8,14 @@ post9pservice(int fd, char *name) char *ns, *s; Waitmsg *w; - if((ns = getns()) == nil) - return -1; - - s = smprint("unix!%s/%s", ns, name); - free(ns); + if(strchr(name, '!')) /* assume is already network address */ + s = strdup(name); + else{ + if((ns = getns()) == nil) + return -1; + s = smprint("unix!%s/%s", ns, name); + free(ns); + } if(s == nil) return -1; switch(fork()){ |