From d38c81fcffe22b906781a6bfa62a6f01a4226ba3 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 3 Dec 2014 11:42:22 +0100 Subject: [PATCH] Handle broken symlinks, Simple versioner (fixes #1071) --- internal/versioner/simple.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/versioner/simple.go b/internal/versioner/simple.go index 83318b642..e51575fe5 100644 --- a/internal/versioner/simple.go +++ b/internal/versioner/simple.go @@ -55,7 +55,7 @@ func NewSimple(folderID, folderPath string, params map[string]string) Versioner // Move away the named file to a version archive. If this function returns // nil, the named file does not exist any more (has been archived). func (v Simple) Archive(filePath string) error { - fileInfo, err := os.Stat(filePath) + fileInfo, err := os.Lstat(filePath) if err != nil { if os.IsNotExist(err) { if debug {