1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-28 11:57:28 +00:00

Use lstat(2) instead of stat(2) when deciding if we should fastcopy

a file. This fixes moving symlinks across partitions.

PR:		17847
Reviewed by:	bde
This commit is contained in:
David Malone 2000-07-11 18:01:42 +00:00
parent 33d70f97bf
commit a95d6fda80
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62963

View File

@ -221,7 +221,7 @@ do_move(from, to)
* it's a regular file, do the copy internally; otherwise, use
* cp and rm.
*/
if (stat(from, &sb)) {
if (lstat(from, &sb)) {
warn("%s", from);
return (1);
}