scsh-users
[Top] [All Lists]

bind-socket on unix sockets

To: scsh-bugs@zurich.ai.mit.edu
Subject: bind-socket on unix sockets
From: David Reiss <dreiss@cs.brown.edu>
Date: Wed, 13 Feb 2002 03:04:21 -0500
A minor bug in 0.6.0:

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


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

Attachment: scsh-bind-socket.diff
Description: Text document

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