Commit 4787f87a authored by Ross Smith II's avatar Ross Smith II

Merge pull request #1766 from TimAtLassian/issue-1765-fix-symlink-upload

Create temporary copy of symlink before uploading, fixes #1765
parents ecf82071 0f36a051
......@@ -336,7 +336,7 @@ func scpUploadFile(dst string, src io.Reader, w io.Writer, r *bufio.Reader, fi *
var mode os.FileMode
var size int64
if fi != nil {
if fi != nil && (*fi).Mode().IsRegular() {
mode = (*fi).Mode().Perm()
size = (*fi).Size()
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment