Revert "Merge pull request #1078 from syncthing/go1.4"

This reverts commit b658afd857, reversing
changes made to 591c5dabf4.
This commit is contained in:
Jakob Borg
2014-12-04 22:24:49 +01:00
parent b658afd857
commit 7f97037190
7 changed files with 283 additions and 151 deletions

View File

@@ -817,7 +817,7 @@ func (p *Puller) performFinish(state *sharedPullerState) {
// Remove the file, and replace it with a symlink.
err = osutil.InWritableDir(func(path string) error {
os.Remove(path)
return symlinks.Create(string(content), path, state.file.Flags)
return symlinks.Create(path, string(content), state.file.Flags)
}, state.realName)
if err != nil {
l.Warnln("puller: final: creating symlink:", err)