From b99f4bffec6ad499628991bcdd2e8998e8a810ec Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Thu, 22 Mar 2018 22:37:09 -0400 Subject: [PATCH] Follow symlinks that point to paths starting with \\ --- src/duplicacy_entry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duplicacy_entry.go b/src/duplicacy_entry.go index e1cbbd1..6287fa7 100644 --- a/src/duplicacy_entry.go +++ b/src/duplicacy_entry.go @@ -483,7 +483,7 @@ func ListEntries(top string, path string, fileList *[]*Entry, patterns []string, if isRegular { entry.Mode ^= uint32(os.ModeSymlink) - } else if path == "" && filepath.IsAbs(entry.Link) && !strings.HasPrefix(entry.Link, normalizedTop) { + } else if path == "" && (filepath.IsAbs(entry.Link) || filepath.HasPrefix(entry.Link, `\\`)) && !strings.HasPrefix(entry.Link, normalizedTop) { stat, err := os.Stat(filepath.Join(top, entry.Path)) if err != nil { LOG_WARN("LIST_LINK", "Failed to read the symlink: %v", err)