diff options
-rw-r--r-- | src/lib9/netmkaddr.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 @@ -46,11 +46,17 @@ netmkaddr(char *linear, char *defnet, char *defsrv) 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; } |