mirror of
https://github.com/syncthing/syncthing.git
synced 2026-10-22 19:24:24 -04:00
lib/model: Don't leak fd when truncate fails (fixes #4593)
Also attempt to handle this nicer by ignoring the truncate failure when it doesn't matter, and recover by deleting the temp file when it does. GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4594
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f