diff --git a/src/lib9/netmkaddr.c b/src/lib9/netmkaddr.c index b476516d..832f7e28 100644 --- a/src/lib9/netmkaddr.c +++ b/src/lib9/netmkaddr.c @@ -45,12 +45,18 @@ netmkaddr(char *linear, char *defnet, char *defsrv) if(cp) return linear; + /* + * if the network is unix, no service + */ + if(strncmp(linear, "unix!", 5) == 0) + return linear; + /* * add default service */ if(defsrv == 0) return linear; - snprint(addr, sizeof(addr), "%s!%s", linear, defsrv); + snprint(addr, sizeof(addr), "%s!%s", linear, defsrv); return addr; }