Daniel Kahn Gillmor wrote:
> with regards to debian bug #573902:
> 
> it looks like the origin of the limit for the length of the unix-domain
> socket filename is not actually in socat.
> 
> I traced it back to /usr/include/sys/un.h, which says:
> 
>> /* Structure describing the address of an AF_LOCAL (aka AF_UNIX) socket.  */
>> struct sockaddr_un
>>   {
>>     __SOCKADDR_COMMON (sun_);
>>     char sun_path[108];              /* Path name.  */
>>   };
> 
> so maybe it's a kernel limitation?  or a libc6 limitation?  ugh.
> 
>       --dkg
> 

That does indeed appear to be the origin of the limit. Although sanely
dying, or notifying, when trying to open a socket with a longer file
name than 108 chars should be appropriate.

-Chris



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to