Use same order of parameters as os.Symlink

This commit is contained in:
Jakob Borg committed 2014-12-04 11:53:55 +01:00
1 parent 1ff9bb8fdc
commit 2abe792f36
3 files changed
+12 -12

No files matched your search

+1 -1
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(path, string(content), state.file.Flags)
return symlinks.Create(string(content), path, state.file.Flags)
}, state.realName)
if err != nil {
l.Warnln("puller: final: creating symlink:", err)