Commit 5a5761b7 authored by David Venhoek's avatar David Venhoek
Browse files

Fixed bug where windows path seperators caused ReadAuthenticatedFile to fail...

Fixed bug where windows path seperators caused ReadAuthenticatedFile to fail looking up a file in the index.
parent e73342b5
......@@ -825,7 +825,7 @@ func (conf *Configuration) VerifySchemeManager(manager *SchemeManager) error {
// and verifies its authenticity by checking that the file hash
// is present in the (signed) scheme manager index file.
func (conf *Configuration) ReadAuthenticatedFile(manager *SchemeManager, path string) ([]byte, bool, error) {
signedHash, ok := manager.index[path]
signedHash, ok := manager.index[filepath.ToSlash(path)]
if !ok {
return nil, false, nil
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment