Merge remote-tracking branch 'origin/fix/security-all' into integration/all-fixes

This commit is contained in:
TapTap committed 2026-07-29 19:25:16 +02:00
commit afe6f4144b
9 files changed
+143 -26

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ int receive_files(Config* config, int fd) {
}
char* full_path = path_cat(config->receive_root_directory, check_path);
struct stat st;
bool has_old = full_path && stat(full_path, &st) == 0;
bool has_old = full_path && lstat(full_path, &st) == 0;
bool match = has_old && (unsigned long long)st.st_size == check_size &&
(long long)st.st_mtime == check_mtime;
if (match)