From owner-freebsd-hackers Sat Jul 11 07:48:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA07605 for freebsd-hackers-outgoing; Sat, 11 Jul 1998 07:48:28 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from wafu.netgate.net (wafu.netgate.net [204.145.147.80]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id HAA07600 for ; Sat, 11 Jul 1998 07:48:26 -0700 (PDT) (envelope-from shigio@wafu.netgate.net) Message-Id: <199807111448.HAA07600@hub.freebsd.org> Received: (qmail 10585 invoked from network); 11 Jul 1998 06:48:15 -0000 Received: from ins19.tama-ap3.dti.ne.jp (HELO choota.signet.or.jp) (203.181.67.19) by wafu.netgate.net with SMTP; 11 Jul 1998 06:48:15 -0000 Received: from choota.signet.or.jp (localhost [127.0.0.1]) by choota.signet.or.jp (8.8.7/) with ESMTP id XAA00557; Sat, 11 Jul 1998 23:49:22 +0900 (JST) To: sbabkin@dcn.att.com cc: shigio@wafu.netgate.net, hackers@FreeBSD.ORG Subject: Re: Improvemnet of ln(1). In-reply-to: Message from sbabkin@dcn.att.com of "Fri, 10 Jul 1998 16:18:26 -0400." Date: Sat, 11 Jul 1998 23:49:22 +0900 From: Shigio Yamaguchi Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, > > [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. There are two important issue, I think. o Is it right symbolic link? o Can we make a choice whether absolute or relative symbolic link? -- Shigio Yamaguchi (Freelance programmer) Mail: shigio@wafu.netgate.net, WWW: http://wafu.netgate.net/tama/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message