Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/model: Fix race in GetIgnores (fixes syncthing#4300)
In addition this function returned an error when .stignore file was not present, which is perfectly valid. Also removed inconsistent nil check in ignores.go (only relevant for tests) and adjusted walk.go to do what it says in comments (check if Matcher is nil) to prevent nil deref in tests. Originally reported in: https://forum.syncthing.net/t/reason-for-panic-maybe-too-little-ram/10346 Regression from syncthing#3996 GitHub-Pull-Request: syncthing#4301
- Loading branch information