Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Mar 2002 00:10:02 -0800 (PST)
From:      Makoto Matsushita <matusita@jp.FreeBSD.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: i386/36546: absolute symbolic links in FreeBSD 4.5
Message-ID:  <200203310810.g2V8A2226354@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: 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
Date: Sun, 31 Mar 2002 17:08:02 +0900

 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.
 
 -- -
 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?200203310810.g2V8A2226354>