emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tramp and permission denied


From: Lars Hansen
Subject: Tramp and permission denied
Date: Tue, 01 Nov 2005 08:09:18 +0100
User-agent: Debian Thunderbird 1.0.2 (X11/20051002)

When I do

   C-x C-f /scp:remote-box:foo

Tramp signals "Login failed" if foo cannot be read due to insufficient
permissions.
With the patch attached, Tramp signals something more descriptive.
I have tested with scp on Debian Sarge only.

Ok?

*** /home/lh/cvsroot/emacs/lisp/net/tramp.el    2005-11-01 07:12:42.887167474 
+0100
--- tramp.1.83.patched.el       2005-11-01 07:59:10.517517219 +0100
***************
*** 5361,5366 ****
--- 5361,5369 ----
               (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)))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]