Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jul 1998 16:18:26 -0400
From:      sbabkin@dcn.att.com
To:        shigio@wafu.netgate.net, hackers@FreeBSD.ORG
Subject:   RE: Improvemnet of ln(1).
Message-ID:  <C50B6FBA632FD111AF0F0000C0AD71EEFF8B5F@dcn71.dcn.att.com>

next in thread | raw e-mail | index | archive | help
> -----Original Message-----
> From:	Shigio Yamaguchi [SMTP:shigio@wafu.netgate.net]
> 
> I'm thinking about improvement of ln(1).
> 
> [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 ?

-Serge



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?C50B6FBA632FD111AF0F0000C0AD71EEFF8B5F>