Fix error condition in fs_copyfile

This commit is contained in:
Antonio SJ Musumeci 2026-03-19 20:07:17 -05:00 • committed by trapexit
parent 08f9cc6932
commit 0f1a8e9b69
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;