From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Hansen Newsgroups: gmane.emacs.devel Subject: Tramp and permission denied Date: Tue, 01 Nov 2005 08:09:18 +0100 Message-ID: <4367149E.9020409@soem.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050606060403040805090509" X-Trace: sea.gmane.org 1130829112 7493 80.91.229.2 (1 Nov 2005 07:11:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Nov 2005 07:11:52 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 01 08:11:51 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EWqIO-0005hL-3S for ged-emacs-devel@m.gmane.org; Tue, 01 Nov 2005 08:11:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EWqIM-0001Pc-2W for ged-emacs-devel@m.gmane.org; Tue, 01 Nov 2005 02:10:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EWqGq-0001PC-HP for emacs-devel@gnu.org; Tue, 01 Nov 2005 02:09:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EWqGo-0001Oo-4j for emacs-devel@gnu.org; Tue, 01 Nov 2005 02:09:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EWqGn-0001Ok-KQ for emacs-devel@gnu.org; Tue, 01 Nov 2005 02:09:21 -0500 Original-Received: from [212.99.225.245] (helo=odin.broadcom.dk) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EWqGn-0002Vt-DH for emacs-devel@gnu.org; Tue, 01 Nov 2005 02:09:21 -0500 Original-Received: from pppoe3-ves.broadcom.dk ([212.99.255.42] helo=[10.17.1.154]) by odin.broadcom.dk with esmtp (Exim 4.24; FreeBSD) id 1EWqBF-000LeO-W9; Tue, 01 Nov 2005 08:03:38 +0100 User-Agent: Debian Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: en-us, en Original-To: Michael Albinus X-Enigmail-Version: 0.91.0.0 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45222 Archived-At: This is a multi-part message in MIME format. --------------050606060403040805090509 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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? --------------050606060403040805090509 Content-Type: text/x-patch; name="tramp.1.83.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="tramp.1.83.patch" *** /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))) --------------050606060403040805090509 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --------------050606060403040805090509--