Create temporary copy of symlink before uploading, fixes #1765

This commit is contained in:
Tim Cinel 2014-12-16 14:11:28 +11:00
parent 496d1fe9b5
commit 0f36a051d5
1 changed files with 1 additions and 1 deletions

View File

@ -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 {