Fix error condition in fs_copyfile

This commit is contained in:
Antonio SJ Musumeci 2026-03-19 20:07:17 -05:00
parent d58014f1cc
commit 6a980c4588
2 changed files with 152 additions and 4 deletions

View file

@ -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;