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:
parent
c32f6e1e5d
commit
7339539ac5
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user