mirror of https://gogs.blitter.com/RLabs/xs
Fixed abs/relative path for client dest copies
This commit is contained in:
parent
143990da34
commit
c3572d7c0c
|
@ -141,7 +141,10 @@ func runServerToClientCopyAs(who string, conn hkexnet.Conn, srcPath string, chaf
|
|||
|
||||
var c *exec.Cmd
|
||||
cmdName := "/bin/tar"
|
||||
//cmdArgs := []string{"-c", "-f", "-", srcPath}
|
||||
if !path.IsAbs(srcPath) {
|
||||
srcPath = fmt.Sprintf("%s%c%s", u.HomeDir, os.PathSeparator, srcPath)
|
||||
}
|
||||
|
||||
srcDir, srcBase := path.Split(srcPath)
|
||||
cmdArgs := []string{"-cz", "-C", srcDir, "-f", "-", srcBase}
|
||||
|
||||
|
|
Loading…
Reference in New Issue