syncthing/lib/versioner
Jakob Borg f1f21bf220 lib/model, lib/versioner: Prevent symlink attack via versioning (fixes #4286)
Prior to this, the following is possible:

- Create a symlink "foo -> /somewhere", it gets synced
- Delete "foo", it gets versioned
- Create "foo/bar", it gets synced
- Delete "foo/bar", it gets versioned in "/somewhere/bar"

With this change, versioners should never version symlinks.
2017-08-07 07:57:10 +02:00
..
_external_test lib/versioner: Test both spaces and parens in ext versioner paths 2016-09-18 12:24:55 +00:00
.gitignore mv internal lib 2015-08-09 09:35:26 +02:00
debug.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
external_test.go all: Correct various typos 2017-02-25 08:12:13 +00:00
external.go lib/model, lib/versioner: Prevent symlink attack via versioning (fixes #4286) 2017-08-07 07:57:10 +02:00
simple_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
simple.go lib/model, lib/versioner: Prevent symlink attack via versioning (fixes #4286) 2017-08-07 07:57:10 +02:00
staggered_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
staggered.go lib/model, lib/versioner: Prevent symlink attack via versioning (fixes #4286) 2017-08-07 07:57:10 +02:00
trashcan_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
trashcan.go lib/model, lib/versioner: Prevent symlink attack via versioning (fixes #4286) 2017-08-07 07:57:10 +02:00
util.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
versioner.go lib/model, lib/versioner: Prevent symlink attack via versioning (fixes #4286) 2017-08-07 07:57:10 +02:00