Merge pull request #73 from sdaros/master

Fix typo
This commit is contained in:
gilbertchen
2017-06-13 13:17:05 -04:00
committed by GitHub

View File

@@ -82,7 +82,7 @@ func checkHostKey(repository string, hostname string, remote net.Addr, key ssh.P
} }
preferencePath := GetDuplicacyPreferencePath(repository) preferencePath := GetDuplicacyPreferencePath(repository)
hostFile := path.Join(preferencePath, "knowns_hosts") hostFile := path.Join(preferencePath, "known_hosts")
file, err := os.OpenFile(hostFile, os.O_RDWR | os.O_CREATE, 0600) file, err := os.OpenFile(hostFile, os.O_RDWR | os.O_CREATE, 0600)
if err != nil { if err != nil {
return err return err