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:
dwmalone 2000-07-11 18:01:42 +00:00
parent c32f6e1e5d
commit 7339539ac5

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);
}