Woops, close the right fd

This commit is contained in:
Jakob Borg 2014-09-04 22:03:25 +02:00
parent 89885b9fb9
commit e586fda5f2

View File

@ -725,7 +725,7 @@ func archiveLegacyConfig() {
l.Warnf("Cannot archive config:", err)
return
}
defer src.Close()
defer dst.Close()
l.Infoln("Archiving config.xml")
io.Copy(dst, src)