1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

(tramp-action-out-of-band): Handle scp message "Permission denied".

This commit is contained in:
Lars Hansen 2005-11-02 07:05:56 +00:00
parent b57148527d
commit e89cd3e696
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2005-11-02 Lars Hansen <larsh@soem.dk>
* net/tramp.el (tramp-action-out-of-band): Handle scp message
"Permission denied".
2005-11-01 Richard M. Stallman <rms@gnu.org>
* textmodes/flyspell.el (flyspell-external-point-words):

View file

@ -5361,6 +5361,9 @@ The terminal type can be configured with `tramp-terminal-type'."
(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)))