From owner-freebsd-bugs Sun Apr 27 18:30:02 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA10968 for bugs-outgoing; Sun, 27 Apr 1997 18:30:02 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA10958; Sun, 27 Apr 1997 18:30:00 -0700 (PDT) Date: Sun, 27 Apr 1997 18:30:00 -0700 (PDT) Message-Id: <199704280130.SAA10958@hub.freebsd.org> To: freebsd-bugs Cc: From: David Nugent Subject: Re: bin/3399: mv of symbolic link can move directory instead of link Reply-To: David Nugent Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/3399; it has been noted by GNATS. From: David Nugent To: chiuk@indiana.edu Cc: freebsd-gnats-submit@freebsd.org Subject: Re: bin/3399: mv of symbolic link can move directory instead of link Date: Mon, 28 Apr 1997 11:23:01 +1000 > If a symbolic link is entered with a trailing /, the directory it > references instead of the link is moved. This could cause loss of > data, if someone assumes that the original directory was not affected. Wrong assumption. :-) IMHO this a a feature, not a bug. Many programs assume you wish to look "through" a symlink if you add the trailing slash. /bin/ls, for example. mv's behaviour therefore would seem to be expected. Regards, David David Nugent - Unique Computing Pty Ltd - Melbourne, Australia Voice +61-3-9791-9547 Data/BBS +61-3-9792-3507 3:632/348@fidonet davidn@freebsd.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/