fix: update skips different file type

(cherry picked from commit def944a501)
This commit is contained in:
Zen Dodd
2026-06-04 01:16:50 +10:00
committed by Andrew Tridgell
parent 903a71e8e4
commit 71c0e5ab53

View File

@@ -1718,7 +1718,8 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
goto cleanup;
}
if (update_only > 0 && statret == 0 && file->modtime - sx.st.st_mtime < modify_window) {
if (update_only > 0 && statret == 0 && stype == ftype
&& file->modtime - sx.st.st_mtime < modify_window) {
if (INFO_GTE(SKIP, 1))
rprintf(FINFO, "%s is newer\n", fname);
#ifdef SUPPORT_HARD_LINKS