diff options
author | Jakob Borg <jakob@nym.se> | 2014-09-04 22:03:25 +0200 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2014-09-04 22:03:25 +0200 |
commit | e586fda5f2956d7db0913292ec83b19f170fdf26 (patch) | |
tree | 356b8fa0053ac8bc743f52ca25784701dc5050d1 | |
parent | 89885b9fb9e78827d34cc586f3ca92b7127e6055 (diff) |
Woops, close the right fd
-rw-r--r-- | cmd/syncthing/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index a9f24c089a..763e99ff8c 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -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) |