Refuse files with unknown bits set (fixes #1276)

This commit is contained in:
Audrius Butkevicius
2015-01-25 23:11:23 +00:00
parent 8358fedaf4
commit b87ed97402
4 changed files with 72 additions and 3 deletions

2
Godeps/Godeps.json generated
View File

@@ -35,7 +35,7 @@
},
{
"ImportPath": "github.com/syncthing/protocol",
"Rev": "442e93d3fc7728d7560c8d039a4199a77879b9f6"
"Rev": "4395711d26c61e7e422a8c8da43dda164f1820f4"
},
{
"ImportPath": "github.com/syndtr/goleveldb/leveldb",

View File

@@ -43,6 +43,8 @@ const (
FlagSymlink = 1 << 16
FlagSymlinkMissingTarget = 1 << 17
FlagsAll = (1 << iota) - 1
SymlinkTypeMask = FlagDirectory | FlagSymlinkMissingTarget
)