diff options
author | rsc <devnull@localhost> | 2006-07-23 02:56:37 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-07-23 02:56:37 +0000 |
commit | 6215fd56f1c9d9392806efd1ac499f91c8ae83fb (patch) | |
tree | d1e089619e07beb3c41d2c68879708bb1d5e9348 /src/lib9/dial.c | |
parent | 73a5509ae929e41ca0047254a880c8efd4aa72a1 (diff) | |
download | plan9port-6215fd56f1c9d9392806efd1ac499f91c8ae83fb.tar.gz plan9port-6215fd56f1c9d9392806efd1ac499f91c8ae83fb.tar.bz2 plan9port-6215fd56f1c9d9392806efd1ac499f91c8ae83fb.zip |
experiment: translation from standard notations to plan 9 in netmkaddr
Diffstat (limited to 'src/lib9/dial.c')
-rw-r--r-- | src/lib9/dial.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib9/dial.c b/src/lib9/dial.c index dcbdc0b8..88dcf564 100644 --- a/src/lib9/dial.c +++ b/src/lib9/dial.c @@ -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){ |