From owner-freebsd-bugs Sun Mar 31 0:20:12 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C74C637B419 for ; Sun, 31 Mar 2002 00:20:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2V8K2j27724; Sun, 31 Mar 2002 00:20:02 -0800 (PST) (envelope-from gnats) Date: Sun, 31 Mar 2002 00:20:02 -0800 (PST) Message-Id: <200203310820.g2V8K2j27724@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Eduardo Viruena Silva Subject: Re: i386/36546: absolute symbolic links in FreeBSD 4.5 Reply-To: Eduardo Viruena Silva Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR i386/36546; it has been noted by GNATS. From: Eduardo Viruena Silva To: Makoto Matsushita Cc: Subject: Re: i386/36546: absolute symbolic links in FreeBSD 4.5 Date: Sun, 31 Mar 2002 02:18:23 -0600 (CST) On Sun, 31 Mar 2002, Makoto Matsushita wrote: > Date: Sun, 31 Mar 2002 17:08:02 +0900 > From: Makoto Matsushita > To: Eduardo Viruena Silva > Cc: bug-followup@FreeBSD.org > Subject: Re: i386/36546: absolute symbolic links in FreeBSD 4.5 > > > mrspock> Nevertheless, wouldn't be better to have relative symbolic links? > > Yes, but if relative symlink points the correct file/directory. > > Someone may want to setup as follows: > > mkdir /disk1 > mkdir /disk2 > mount /dev/xxx0a /disk1 > mount /dev/xxx0b /disk2 > cd /usr > (cd bin; tar cf - ) | (cd /disk1; tar xpf -); rm -rf bin > (cd sbin; tar cf - ) | (cd /disk2; tar xpf -); rm -rf sbin > ln -s /disk1 /usr/bin > ln -s /disk2 /usr/sbin > > In this example, if you change /usr/bin/mailq is a symlink to > ../sbin/mailwrapper, it is treated as /sbin/mailwrapper and it's wrong > location. Yes this is a radical case, but it shows the potential > problem of using relative path symlink. oops! yes, you are right again. please close my report. [I made two reports, one for ports/mtools and this one, please, close this one]. > > -- - > Makoto `MAR' Matsushita > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message