mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-25 01:16:30 -05:00
fix rename'ing to local device
This commit is contained in:
parent
3b6c74878c
commit
ec38a9c783
2 changed files with 7 additions and 5 deletions
|
|
@ -57,6 +57,8 @@ _rename(const fs::SearchFunc searchFunc,
|
|||
pathto = fs::make_path(pathfrom[0].base,to);
|
||||
|
||||
rv = ::rename(pathfrom[0].full.c_str(),pathto.c_str());
|
||||
if(rv == -1 && errno == ENOENT)
|
||||
return -EXDEV;
|
||||
|
||||
return ((rv == -1) ? -errno : 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue