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

This commit is contained in:
2026-07-29 19:25:16 +02:00
9 changed files with 143 additions and 26 deletions
+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)