This commit is contained in:
Mitchell Hashimoto 2013-09-30 11:39:52 -07:00
parent 89d165aae7
commit f017fd8af9
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ func scpUploadDir(root string, fs []os.FileInfo, w io.Writer, r *bufio.Reader) e
// a file just works. If it is a directory, we need to know so we
// treat it as such.
isSymlinkToDir := false
if fi.Mode() & os.ModeSymlink == os.ModeSymlink {
if fi.Mode()&os.ModeSymlink == os.ModeSymlink {
symPath, err := filepath.EvalSymlinks(realPath)
if err != nil {
return err