# HG changeset patch # User Lars Hansen # Date 1130915132 0 # Node ID 7b4c431b02c56eefddd1c6296fc1995bf293e027 # Parent 8df54e3c1f25ba2a30e38dbd7852d5df17b19219 (tramp-action-out-of-band): Handle scp message "Permission denied". diff -r 8df54e3c1f25 -r 7b4c431b02c5 lisp/net/tramp.el --- a/lisp/net/tramp.el Wed Nov 02 01:34:04 2005 +0000 +++ b/lisp/net/tramp.el Wed Nov 02 07:05:32 2005 +0000 @@ -5361,6 +5361,9 @@ (tramp-message 10 "'set mode' error ignored.") (tramp-message 9 "Process has finished.") (throw 'tramp-action 'ok)) + (goto-char (point-min)) + (when (re-search-forward "^.cp.?: \\(.+: Permission denied.?\\)$" nil t) + (error "Remote host: %s" (match-string 1))) (tramp-message 9 "Process has died.") (throw 'tramp-action 'process-died))) (t nil)))