rscp

git clone https://orangeshoelaces.net/git/rscp.git

f4cd2aa6fb648cb60b488c2b788515bb48bfe7d6

Author: Vasily Kolobkov on 07/02/2017

Committer: Vasily Kolobkov on 07/02/2017

End recursive sink calls on E message

Stats

rscp.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/rscp.go b/rscp.go
index 87db04c..0908c66 100644
--- a/rscp.go
+++ b/rscp.go
@@ -130,6 +130,7 @@ func sink(path string, recur bool) error {
 			if _, err := fmt.Fprint(out, "\x00"); err != nil {
 				return FatalError(err.Error())
 			}
+			goto Out
 
 		case 'T':
 			if times == nil {
@@ -172,7 +173,7 @@ func sink(path string, recur bool) error {
 			return teeError(err)
 		}
 	}
-
+Out:
 	if len(errs) > 0 {
 		return AccError{errs}
 	}