Date: Sun, 31 Mar 2002 00:20:02 -0800 (PST) From: Eduardo Viruena Silva <mrspock@esfm.ipn.mx> To: freebsd-bugs@FreeBSD.org Subject: Re: i386/36546: absolute symbolic links in FreeBSD 4.5 Message-ID: <200203310820.g2V8K2j27724@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/36546; it has been noted by GNATS. From: Eduardo Viruena Silva <mrspock@esfm.ipn.mx> To: Makoto Matsushita <matusita@jp.FreeBSD.org> Cc: <bug-followup@FreeBSD.org> 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 <matusita@jp.FreeBSD.org> > To: Eduardo Viruena Silva <mrspock@esfm.ipn.mx> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203310820.g2V8K2j27724>