mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 06:56:27 -05:00
Fix error condition in fs_copyfile
This commit is contained in:
parent
08f9cc6932
commit
0f1a8e9b69
2 changed files with 152 additions and 4 deletions
|
|
@ -149,7 +149,7 @@ fs::copyfile(const int src_fd_,
|
|||
}
|
||||
|
||||
rv = fs::file_changed(src_fd_,src_st);
|
||||
if(rv == FS_FILE_CHANGED)
|
||||
if(rv != FS_FILE_UNCHANGED)
|
||||
{
|
||||
fs::unlink(dst_tmppath);
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue