Re: rm -rf / fanclub
Peter Maloney wrote: On Thu, Feb 23, 2012 at 11:41 PM, deeptech71 at gmail.com deeptech71 at gmail.com wrote: X11R6 should be a symlink to local or ./local. Did you test this, by removing the link and creating it relative to see if there are any stupid side effects? No apparent side effects. And I can't even see why there would be any. In both cases (X11R6 points to /usr/local vs X11R6 points to local) - /usr/X11R6 resolves to the symlink, although different symlink texts can be extracted; - /usr/X11R6/ resolves to the local directory in /usr; - /usr/X11R6/file123 resolves to /usr/local/file123. TODO: Test whether purely removing X11R6 has any side effects. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: rm -rf / fanclub
On 6 March 2012 20:38, deeptec...@gmail.com wrote: Peter Maloney wrote: On Thu, Feb 23, 2012 at 11:41 PM, deeptech71 at gmail.com deeptech71 at gmail.com wrote: X11R6 should be a symlink to local or ./local. Did you test this, by removing the link and creating it relative to see if there are any stupid side effects? No apparent side effects. And I can't even see why there would be any. In both cases (X11R6 points to /usr/local vs X11R6 points to local) - /usr/X11R6 resolves to the symlink, although different symlink texts can be extracted; - /usr/X11R6/ resolves to the local directory in /usr; - /usr/X11R6/file123 resolves to /usr/local/file123. TODO: Test whether purely removing X11R6 has any side effects. Not hugely helpful, but I've discovered a few subtle bugs that miraculously disappear when X11R6 symlink was removed. I still miss it though, in a weird way... Chris ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: rm -rf / fanclub
On Thu, Feb 23, 2012 at 11:41 PM, deeptec...@gmail.com deeptec...@gmail.com wrote: X11R6 is actually a symlink to /usr/local, and not usr/local or .usr/local! Also, /home is a symlink to /usr/home, and not usr/home or ./usr/home I meant to say that X11R6 should be a symlink to local or ./local. About /home: I've just noticed that /home points to usr/home in the newest release. The newest basic installation (base + kernel) doesn't even come with an X11R6 symlink, yet I did have it after a full install (-CURRENTization + ports), so that symlink must be coming from mergemaster or some port. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: rm -rf / fanclub
On 02/24/2012 01:16 AM, deeptec...@gmail.com wrote: On Thu, Feb 23, 2012 at 11:41 PM, deeptec...@gmail.com deeptec...@gmail.com wrote: X11R6 is actually a symlink to /usr/local, and not usr/local or .usr/local! Also, /home is a symlink to /usr/home, and not usr/home or ./usr/home I meant to say that X11R6 should be a symlink to local or ./local. I fully agree (if tested)... it makes no sense to use absolute symlinks unless you really want them to be absolute. eg. in my home dir I added dhcpd.leases - /var/lib/... Did you test this, by removing the link and creating it relative to see if there are any stupid side effects? And I've never really thought symlinks were so dangerous (unless you use software that auto-dereferences, eg. platform independent stuff), but with mount --bind in linux (same as nullfs in FreeBSD?), you can do similar things if you don't use --one-file-system with your rm -rf calls. So in addition to the symlink change, why not improve rm also, by adding the --one-file-system option (which actually exists in grm from the sysutils/coreutils port). About /home: I've just noticed that /home points to usr/home in the newest release. The newest basic installation (base + kernel) doesn't even come with an X11R6 symlink, yet I did have it after a full install (-CURRENTization + ports), so that symlink must be coming from mergemaster or some port. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org -- Peter Maloney Brockmann Consult Max-Planck-Str. 2 21502 Geesthacht Germany Tel: +49 4152 889 300 Fax: +49 4152 889 333 E-mail: peter.malo...@brockmann-consult.de Internet: http://www.brockmann-consult.de ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org