syncthing/lib/scanner
Jakob Borg 926c88cfc4 lib/scanner: Never, ever descend into symlinks (ref #3857)
On Windows we would descend into SYMLINKD type links when we scanned
them successfully, as we would return nil from the walk function and the
filepath.Walk iterator apparently thought it OK to descend into the
symlinked directory.

With this change we always return filepath.SkipDir no matter what.

Tested on Windows 10 as admin, does what it should.

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3875
2017-01-05 13:26:29 +00:00
..
testdata mv internal lib 2015-08-09 09:35:26 +02:00
.gitignore Add benchmark of HashFile 2015-10-27 09:30:34 +01:00
blockqueue.go lib/scanner: Recheck file size and modification time after hashing (ref #3440) 2016-07-26 08:51:39 +00:00
blocks_test.go lib/model, lib/weakhash: Hash using adler32, add heuristic in puller 2017-01-04 21:04:13 +00:00
blocks.go lib/model, lib/weakhash: Hash using adler32, add heuristic in puller 2017-01-04 21:04:13 +00:00
debug.go Implement facility based logger, debugging via REST API 2015-10-03 18:09:53 +02:00
doc.go mv internal lib 2015-08-09 09:35:26 +02:00
walk_test.go lib/model, lib/protocol, lib/scanner: Include symlink target in index, pull symlinks synchronously 2016-12-09 18:02:18 +00:00
walk.go lib/scanner: Never, ever descend into symlinks (ref #3857) 2017-01-05 13:26:29 +00:00