Date: Sun, 27 Apr 1997 18:30:00 -0700 (PDT) From: David Nugent <davidn@labs.usn.blaze.net.au> To: freebsd-bugs Subject: Re: bin/3399: mv of symbolic link can move directory instead of link Message-ID: <199704280130.SAA10958@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/3399; it has been noted by GNATS. From: David Nugent <davidn@labs.usn.blaze.net.au> 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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704280130.SAA10958>