Subject: Re: Unix domain sockets and symlinks
To: Michael Richardson <mcr@solidum.com>
From: Chris G. Demetriou <cgd@netbsd.org>
List: netbsd-help
Date: 10/11/1999 14:13:38
Michael Richardson <mcr@solidum.com> writes:
> Is it normal that connect(2) does not follow symlinks on Unix domain
> sockets? In my case, I have rtty running on device "scopebench", and
> have:
>
> vonbrown-[~] mcr 14 %ls -lta /usr/pkg/rtty/sock
> total 2
> drwxr-xr-x 2 root wheel 512 Oct 11 16:43 ./
> srw-rw---- 1 root eng 0 Oct 11 16:43 scopebench=
> lrwxr-xr-x 1 root wheel 10 Oct 11 16:42 garneau@ -> scobebench
>
> But, I get:
>
> vonbrown-[~] mcr 10 %console garneau
> /usr/pkg/rtty/bin/rtty: : /usr/pkg/rtty/sock/garneau: No such file or directory
is the destination of 'garneau' a paste-o, or is your symlink losing?
i've no idea about the expected behaviour, but it's almost certain
that the socket & link you pasted above won't produce it... 8-)
cgd
--
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.