summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-05-25 20:49:08 +0200
committerJakob Borg <jakob@nym.se>2014-05-25 20:49:08 +0200
commit3d055bbb79166e3dfe35d496ddd0fc94fd2f7563 (patch)
treefcb5aed5d6d654a088b2683c8a34d291f25561e7 /cmd
parentdd971b56e502795310bb4e24b8df4998e38f7a14 (diff)
Simple file versioning (fixes #218)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/syncthing/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go
index 1f626fb0c8..83669f45a1 100644
--- a/cmd/syncthing/main.go
+++ b/cmd/syncthing/main.go
@@ -24,6 +24,7 @@ import (
"github.com/calmh/syncthing/discover"
"github.com/calmh/syncthing/logger"
"github.com/calmh/syncthing/model"
+ "github.com/calmh/syncthing/osutil"
"github.com/calmh/syncthing/protocol"
"github.com/calmh/syncthing/upnp"
"github.com/juju/ratelimit"
@@ -498,7 +499,7 @@ func saveConfigLoop(cfgFile string) {
continue
}
- err = model.Rename(cfgFile+".tmp", cfgFile)
+ err = osutil.Rename(cfgFile+".tmp", cfgFile)
if err != nil {
l.Warnln(err)
}