experiment: translation from standard notations to plan 9 in netmkaddr

This commit is contained in:
rsc 2006-07-23 02:56:37 +00:00
parent 73a5509ae9
commit 6215fd56f1
3 changed files with 36 additions and 13 deletions

View file

@ -118,6 +118,9 @@ Unix:
free(buf);
return -1;
}
/* Allow regular files in addition to Unix sockets. */
if((s = open(unix, ORDWR)) >= 0)
return s;
memset(&su, 0, sizeof su);
su.sun_family = AF_UNIX;
if(strlen(unix)+1 > sizeof su.sun_path){