Merge pull request #1321 from AudriusButkevicius/bitcheck

Refuse files with unknown bits set (fixes #1276)
This commit is contained in:
Jakob Borg
2015-02-10 20:27:14 +01:00
4 changed files with 72 additions and 3 deletions

2
Godeps/Godeps.json generated
View File

@@ -31,7 +31,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
)