scsh-users
[Top] [All Lists]

Re: bind-socket on unix sockets

To: David Reiss <dreiss@cs.brown.edu>
Subject: Re: bind-socket on unix sockets
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Wed, 13 Feb 2002 09:30:50 +0100
Cc: scsh-bugs@zurich.ai.mit.edu
Sender: gasbichl@informatik.uni-tuebingen.de
>>>>> "David" == David Reiss <dreiss@cs.brown.edu> writes:

David> A minor bug in 0.6.0:

David> bind-socket attempts to call string-length on a socket-address structure
David> directly, rather than calling socket-address->unix-address first.
David> The following patch (also attached) fixes this:


David> --- scsh/network.scm.old Wed Feb 13 02:53:03 2002
David> +++ scsh/network.scm     Wed Feb 13 02:41:28 2002
David> @@ -204,7 +204,7 @@
David>                     "bind-socket: trying to bind incompatible address to 
socket ~s"
David>                     name))
David>                   ((and (= family address-family/unix)
David> -                       (> (string-length name) 107))
David> +                       (> (string-length (socket-address->unix-address 
name)) 107))
David>                    (error "bind-socket: path too long" name))
David>                   (else
David>                    (%bind (socket->fdes sock)

The fix will be in 0.6.1.

Thanks for the report!

-- 
Martin

<Prev in Thread] Current Thread [Next in Thread>