Date: Tue, 14 Jul 1998 09:35:40 -0400 From: sbabkin@dcn.att.com To: shigio@wafu.netgate.net Cc: hackers@FreeBSD.ORG Subject: RE: Improvemnet of ln(1). Message-ID: <C50B6FBA632FD111AF0F0000C0AD71EEFF8B60@dcn71.dcn.att.com>
next in thread | raw e-mail | index | archive | help
> From: Shigio Yamaguchi [SMTP:shigio@wafu.netgate.net] > > > > [Problem] > > > > > > Ln(1) with -s option makes illegal symbolic link in some case. > > > For example, > > > > > > (Both '/usr/src/sys' and '/tmp' are real directories.) > > > > > > % cd /usr > > > % ln -s src/sys /tmp > > > % ls -l /tmp/sys > > > lrwxrwxrwx 1 shigio wheel 7 Jul 11 02:03 /tmp/sys -> src/sys > > > % cd /tmp/sys > > > /tmp/sys: No such file or directory. > > > > > > Symbolic link '/tmp/sys' has illegal value, so we cannot move > there. > > > Above behavior is not desireble in almost case, I think. > > > > > > [Solution] > > > > > ln -s `pwd`/src/sys /tmp > > > > Isn't it simpler ? > > But it forces user to use absolute symbolic link. > Do the relative symbolic links make any sense outside of subdirectory hierarchy ? Of course, you can do it as ../usr/src/sys and it may be useful in some cases but would it make any sense here? -SB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C50B6FBA632FD111AF0F0000C0AD71EEFF8B60>