unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Hansen <larsh@soem.dk>
Cc: emacs-devel@gnu.org
Subject: Tramp and permission denied
Date: Tue, 01 Nov 2005 08:09:18 +0100	[thread overview]
Message-ID: <4367149E.9020409@soem.dk> (raw)

[-- Attachment #1: Type: text/plain, Size: 245 bytes --]

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?


[-- Attachment #2: tramp.1.83.patch --]
[-- Type: text/x-patch, Size: 606 bytes --]

*** /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)))


[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

             reply	other threads:[~2005-11-01  7:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-01  7:09 Lars Hansen [this message]
2005-11-01  7:20 ` Tramp and permission denied Lars Hansen
2005-11-01 20:44 ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4367149E.9020409@soem.dk \
    --to=larsh@soem.dk \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).