From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#20233: 24.5rc1; tramp error opening file Date: Wed, 01 Apr 2015 08:51:32 +0200 Message-ID: <87fv8kwdcb.fsf@gmx.de> References: <87h9t1znhv.fsf@gmx.de> <87twx1rpcf.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427871145 3346 80.91.229.3 (1 Apr 2015 06:52:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Apr 2015 06:52:25 +0000 (UTC) Cc: 20233@debbugs.gnu.org To: David Hull Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 01 08:52:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YdCVX-0001sG-8j for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 08:52:11 +0200 Original-Received: from localhost ([::1]:41776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdCVV-000679-VD for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 02:52:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdCVR-00066z-Pa for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 02:52:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdCVO-0001ip-Ic for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 02:52:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdCVO-0001if-FF for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 02:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YdCVO-0004vZ-5u for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 02:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Apr 2015 06:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20233 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20233-submit@debbugs.gnu.org id=B20233.142787110318915 (code B ref 20233); Wed, 01 Apr 2015 06:52:02 +0000 Original-Received: (at 20233) by debbugs.gnu.org; 1 Apr 2015 06:51:43 +0000 Original-Received: from localhost ([127.0.0.1]:41592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdCV5-0004v1-15 for submit@debbugs.gnu.org; Wed, 01 Apr 2015 02:51:43 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:63264) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdCV2-0004uj-Gb for 20233@debbugs.gnu.org; Wed, 01 Apr 2015 02:51:41 -0400 Original-Received: from detlef.gmx.de ([79.195.4.85]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MSv6D-1Z4WNE1VrR-00RnwJ; Wed, 01 Apr 2015 08:51:33 +0200 In-Reply-To: (David Hull's message of "Tue, 31 Mar 2015 14:20:41 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:RxbVGVIWLdFGZUAlQSnq+MKeAxGxSlDjJiKZzuTS7ywDvZ+w76x xu3g4Fit5CAOlNq5c/gC0pGaj5LwQypMACtH7Kou0kBI3K8FJ96KuCwMAW4RGqpMKPq64tc HKUGh2i7AgY1SpAKjnZRVO4edhNHsMnmyn25uQVM8pK/o3tkafPQMkBnaup96FEvENwvc8N NsoepxJcQeYDbXBIeGvRQ== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:101102 Archived-At: [Please keep the Cc, for the public] David Hull writes: Hi David, > The scp command succeeded: > > $ cd /tmp > $ rm -f > /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.110640VR.erl > $ scp -p -q -r -o ControlMaster=auto -o ControlPath='tramp.%r@%h:%p' - > o ControlPersist=no > cos6\:/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_lineitem_v3.erl > /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.110640VR.erl > $ echo $? > 0 > $ ls -l > /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.110640VR.erl > -rw-r--r-- 1 david.hull staff 11905 Mar 31 14:02 > /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.110640VR.erl > > I wonder if the problem could be that the ControlPath option doesn't > specify a directory? Yes, indeed. This was changed back in February due to Bug#19861. > I did a test. I put a "scp" shell script in my $HOME/bin directory > with the following contents: > > #! /bin/bash > WD=`pwd` > echo "$WD: scp $*" >>/tmp/scp.out > /usr/bin/scp "$@" > > When I attempted to use tramp, /tmp/scp.out had the following > contents: > > /: scp -p -q -r -o ControlMaster=auto -o ControlPath=tramp.%r@%h:%p -o > ControlPersist=no > cos6:/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_lineitem_v3.erl > /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.16189hTW.erl > > Note that the first thing on the line, the working directory, is "/". Could you, pls, check whether the following patch works for you? It is a backport from Emacs 25.0.50: --8<---------------cut here---------------start------------->8--- *** /home/albinus/src/emacs-24/lisp/net/tramp.el.~emacs-24~ 2015-04-01 08:47:21.556209883 +0200 --- /home/albinus/src/emacs-24/lisp/net/tramp.el 2015-04-01 08:47:21.660211724 +0200 *************** *** 3355,3364 **** (defun tramp-handle-unhandled-file-name-directory (_filename) "Like `unhandled-file-name-directory' for Tramp files." ! ;; With Emacs 23, we could simply return `nil'. But we must keep it ! ;; for backward compatibility. "~/" cannot be returned, because ! ;; there might be machines without a HOME directory (like hydra). ! "/") (defun tramp-handle-set-visited-file-modtime (&optional time-list) "Like `set-visited-file-modtime' for Tramp files." --- 3355,3365 ---- (defun tramp-handle-unhandled-file-name-directory (_filename) "Like `unhandled-file-name-directory' for Tramp files." ! ;; Starting with Emacs 23, we must simply return `nil'. But we must ! ;; keep backward compatibility, also with XEmacs. "~/" cannot be ! ;; returned, because there might be machines without a HOME ! ;; directory (like hydra). ! (and (< emacs-major-version 23) "/")) (defun tramp-handle-set-visited-file-modtime (&optional time-list) "Like `set-visited-file-modtime' for Tramp files." --8<---------------cut here---------------end--------------->8--- Best regards, Michael.