From unknown Fri Jun 20 18:18:09 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#20233 <20233@debbugs.gnu.org> To: bug#20233 <20233@debbugs.gnu.org> Subject: Status: 24.5rc1; tramp error opening file Reply-To: bug#20233 <20233@debbugs.gnu.org> Date: Sat, 21 Jun 2025 01:18:09 +0000 retitle 20233 24.5rc1; tramp error opening file reassign 20233 emacs submitter 20233 David Hull severity 20233 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 30 17:41:58 2015 Received: (at submit) by debbugs.gnu.org; 30 Mar 2015 21:41:58 +0000 Received: from localhost ([127.0.0.1]:40727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YchRU-0003ic-Cu for submit@debbugs.gnu.org; Mon, 30 Mar 2015 17:41:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47607) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YcdBM-0005U1-NY for submit@debbugs.gnu.org; Mon, 30 Mar 2015 13:09:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcdBG-0005KN-Bb for submit@debbugs.gnu.org; Mon, 30 Mar 2015 13:08:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcdBG-0005KI-84 for submit@debbugs.gnu.org; Mon, 30 Mar 2015 13:08:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcdBE-0005EU-QB for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2015 13:08:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcdBB-0005Ja-0r for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2015 13:08:52 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:35135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcdBA-0005JJ-Os for bug-gnu-emacs@gnu.org; Mon, 30 Mar 2015 13:08:48 -0400 Received: by pddn5 with SMTP id n5so65441359pdd.2 for ; Mon, 30 Mar 2015 10:08:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-type; bh=5HCVeS/tSxsTM1QnqiIZyVUyQBjfrT/hyMSzJCNU7tg=; b=HOg3YPVp/j8umLoD6lEx7objhX6n/Dw0aJ++ploqplbs1UlKNCv4pQr5+IOtaksYWX UT/APTGBoWaxxLBiqomC/hiQ91/P0aKO/UbVyTzMlC0ZnnunGggwMA5mh7E1HcVx8rl1 dcVoQPt4MK0+OrRsA9cNnnnET2Nft/uug24fyBAqeaqwhVlbWsh6/2gGA1LGozVMtGEy i4ZAmzZeNmFq2SxdspbeQjdFliPXJA2hMBbMFo2cKYklWJrFfcQHQMsVuM3/B3RLERcZ xT3xbuBikydyS9dPnAmDPoOYhwdcB+2CZJFciMeJuIdwnFKGcuTmruA9uYXdo8D7hHT8 a2cw== X-Gm-Message-State: ALoCoQkkwUdllgq8L93y4HeUnUGFCnoDIkNO0tdJaoLzJxJq/iRLi5KyKDIKlF9wEsnr9Z1jnvSd X-Received: by 10.70.1.227 with SMTP id 3mr59926972pdp.110.1427735327136; Mon, 30 Mar 2015 10:08:47 -0700 (PDT) Received: from mbp-109-op-04.corp.openx.com ([206.169.198.1]) by mx.google.com with ESMTPSA id lm2sm11231913pbc.84.2015.03.30.10.08.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Mar 2015 10:08:46 -0700 (PDT) From: David Hull To: bug-gnu-emacs@gnu.org Subject: 24.5rc1; tramp error opening file Date: Mon, 30 Mar 2015 10:05:52 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 30 Mar 2015 17:41:55 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I am running the emacs 24.5-rc1 version I downloaded from http://emacsformacosx.com/emacs-builds/Emacs-pretest-24.5-rc1-universal.dmg I started emacs with "emacs -Q". I used tramp to open a remote directory in dired by typing "C-x C-f /cos6:src/ds-advertiser-server/src/", where cos6 is the hostname of a VM running on my Mac. The VM is running CentOS 6.5. The dired buffer opened normally. I then moved the cursor to the filename "ds_adv_ox3_lineitem_v3.erl" and pressed the Enter key to open it, and I got the error, "Error copying: `tramp_exit_status 1'". This works correctly under emacs 24.4. The directory /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/ on the Mac exists, and appears to contain temporary files from a variety of programs. However, the file /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.81932-Q0.erl does not exist in the directory. ------------------------------------------------------------------------ In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-03-27 on builder10-9.porkrind.org Windowing system distributor `Apple', version 10.3.1344 Configured using: `configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp'' Important settings: value of $EMACSDATA: /Users/david.hull/Applications/Emacs.app/Contents/Resources/etc value of $EMACSLOADPATH: /Users/david.hull/Applications/Emacs.app/Contents/Resources/lisp:/Users/david.hull/Applications/Emacs.app/Contents/Resources/leim value of $LC_COLLATE: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: Tramp: Found remote shell prompt on `cos6' Tramp: Opening connection for cos6 using scp...done ls does not support --dired; see `dired-use-ls-dired' for more details. Tramp: Inserting `/scp:cos6:/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_lineitem_v3.erl'... Copying /scp:cos6:/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_lineitem_v3.erl to /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.81932-Q0.erl... Tramp: Waiting for prompts from remote shell... Tramp: Process has finished. Tramp: Waiting for prompts from remote shell...done Copying /scp:cos6:/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_lineitem_v3.erl to /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.81932-Q0.erl...failed Tramp: Inserting `/scp:cos6:/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_lineitem_v3.erl'...failed Error copying: `tramp_exit_status 1' Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils dired tramp-cache tramp-sh tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cl-extra cl-loaddefs cl-lib cconv eieio-core gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete comint ansi-color ring format-spec advice help-fns time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 99732 7013) (symbols 48 20448 0) (miscs 40 44 185) (strings 32 21088 4084) (string-bytes 1 646140) (vectors 16 13719) (vector-slots 8 450685 3688) (floats 8 265 111) (intervals 56 546 158) (buffers 960 15)) From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 31 02:32:02 2015 Received: (at 20233) by debbugs.gnu.org; 31 Mar 2015 06:32:02 +0000 Received: from localhost ([127.0.0.1]:40832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YcpiT-0000hp-Kz for submit@debbugs.gnu.org; Tue, 31 Mar 2015 02:32:02 -0400 Received: from mout.gmx.net ([212.227.17.21]:53828) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YcpiP-0000hT-Tv for 20233@debbugs.gnu.org; Tue, 31 Mar 2015 02:31:59 -0400 Received: from detlef.gmx.de ([79.195.24.95]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MIyCj-1Yatlc2QFF-002XCo; Tue, 31 Mar 2015 08:31:42 +0200 From: Michael Albinus To: David Hull Subject: Re: bug#20233: 24.5rc1; tramp error opening file References: Date: Tue, 31 Mar 2015 08:31:40 +0200 In-Reply-To: (David Hull's message of "Mon, 30 Mar 2015 10:05:52 -0700") Message-ID: <87h9t1znhv.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:se39fpdzOO9me/GEjfvEq8PReWjsz6JqSsMmK6/0eYufQxtsfal pSYuPbx3wlFvaAvlylSKryzZSkrTPsmL8mbMSEAIcXT5qoZcSYe9jQr6adfR6qN9eJvg5xX o4qDJJV0Bk2zwcs2oPJVMSxRcbWk74KSVudzkaDAAHiUDj3cR+BhhQXqNM/9j8ZcJARzjbm jQr1U+og036BpS3lxDL2g== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20233 Cc: 20233@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) David Hull writes: Hi David, > I am running the emacs 24.5-rc1 version I downloaded from > http://emacsformacosx.com/emacs-builds/Emacs-pretest-24.5-rc1-universal.dmg > > I started emacs with "emacs -Q". I used tramp to open a remote directory > in dired by typing "C-x C-f /cos6:src/ds-advertiser-server/src/", where > cos6 is the hostname of a VM running on my Mac. The VM is running > CentOS 6.5. The dired buffer opened normally. I then moved the cursor > to the filename "ds_adv_ox3_lineitem_v3.erl" and pressed the Enter key > to open it, and I got the error, "Error copying: `tramp_exit_status 1'". > > This works correctly under emacs 24.4. Could you, please, apply (setq tramp-verbose 6) and rerun your test? There will be a Tramp debug buffer *debug tramp/scp cos6*; pls show it here. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 01 02:51:43 2015 Received: (at 20233) by debbugs.gnu.org; 1 Apr 2015 06:51:43 +0000 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 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 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 From: Michael Albinus To: David Hull Subject: Re: bug#20233: 24.5rc1; tramp error opening file References: <87h9t1znhv.fsf@gmx.de> <87twx1rpcf.fsf@gmx.de> Date: Wed, 01 Apr 2015 08:51:32 +0200 In-Reply-To: (David Hull's message of "Tue, 31 Mar 2015 14:20:41 -0700") Message-ID: <87fv8kwdcb.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:RxbVGVIWLdFGZUAlQSnq+MKeAxGxSlDjJiKZzuTS7ywDvZ+w76x xu3g4Fit5CAOlNq5c/gC0pGaj5LwQypMACtH7Kou0kBI3K8FJ96KuCwMAW4RGqpMKPq64tc HKUGh2i7AgY1SpAKjnZRVO4edhNHsMnmyn25uQVM8pK/o3tkafPQMkBnaup96FEvENwvc8N NsoepxJcQeYDbXBIeGvRQ== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20233 Cc: 20233@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) [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. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 01 12:35:32 2015 Received: (at 20233) by debbugs.gnu.org; 1 Apr 2015 16:35:33 +0000 Received: from localhost ([127.0.0.1]:42625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdLc4-0004r5-3N for submit@debbugs.gnu.org; Wed, 01 Apr 2015 12:35:32 -0400 Received: from mail-ig0-f180.google.com ([209.85.213.180]:38555) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdLc1-0004qr-UB for 20233@debbugs.gnu.org; Wed, 01 Apr 2015 12:35:31 -0400 Received: by igbqf9 with SMTP id qf9so50990128igb.1 for <20233@debbugs.gnu.org>; Wed, 01 Apr 2015 09:35:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=UQqLY7cSqikGYSed9th6/DPnfqHPJhDx8f3+sy1YTjk=; b=CPzXVUwIMWC/snnJ9+QaqZUDYW4qNo/55HYwX5Iv2lEwNYacFvkr2MpLoW5J6F5DT6 XOKjeCxEIOVbVwRQhElBX29/tfaKVBqA2Et+Brb18EHI+7MOHS0C6Uuh+/rNQOlFyqfj WUHwqQZPXOb4tiFRcJ3kFLJvztg/Y5tYLfd1paDbKFNhR3ICGZ9RbLffuQpJaOgY8+R+ N+osW9d0yF7vjeR0MNw2K7OOXBnetUjaYnRctAEze1TzaPI8t9UZ2NC3DOamYBfs2uqs 9tWKC/4QfN4JHRhEcRXrW4Yw9fblLTWyoHLWwgYvE7Qp6TpOjaNl2hoE/vBBqC+Jfa8F eG0Q== X-Gm-Message-State: ALoCoQkF293DWTFK02HXepaIfLUnEqX+zYQOQWUMOHF4r7wJi0/GVkiBsZvGKMcq0ECtWjUzLLmk MIME-Version: 1.0 X-Received: by 10.50.66.141 with SMTP id f13mr13670093igt.9.1427906124108; Wed, 01 Apr 2015 09:35:24 -0700 (PDT) Received: by 10.64.149.2 with HTTP; Wed, 1 Apr 2015 09:35:24 -0700 (PDT) In-Reply-To: <87fv8kwdcb.fsf@gmx.de> References: <87h9t1znhv.fsf@gmx.de> <87twx1rpcf.fsf@gmx.de> <87fv8kwdcb.fsf@gmx.de> Date: Wed, 1 Apr 2015 09:35:24 -0700 Message-ID: Subject: Re: bug#20233: 24.5rc1; tramp error opening file From: David Hull To: Michael Albinus Content-Type: multipart/alternative; boundary=047d7bdc0dd24cf3520512ac4d68 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20233 Cc: 20233@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --047d7bdc0dd24cf3520512ac4d68 Content-Type: text/plain; charset=UTF-8 Yes, that patch fixes the problem for me. Thanks! On Tue, Mar 31, 2015 at 11:51 PM, Michael Albinus wrote: > [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. > -- David Hull --047d7bdc0dd24cf3520512ac4d68 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yes, that patch fixes the problem for me. Thanks!

On Tue, Mar 31, = 2015 at 11:51 PM, Michael Albinus <michael.albinus@gmx.de> wrote:
[Please keep the Cc, for the p= ublic]

David Hull <david.hull@openx.com= > 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=3Dauto -o ControlPath=3D'tramp.%r@= %h:%p' -
> o ControlPersist=3Dno
> cos6\:/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_lineite= m_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 dir= ectory
> with the following contents:
>
> #! /bin/bash
> WD=3D`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=3Dauto -o ControlPath=3Dtramp.%r@%h:%= p -o
> ControlPersist=3Dno
> 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~=C2=A0 =C2=A0 = =C2=A02015-04-01 08:47:21.556209883 +0200
--- /home/albinus/src/emacs-24/lisp/net/tramp.el=C2=A0 =C2=A0 =C2=A0 =C2=A0= 2015-04-01 08:47:21.660211724 +0200
***************
*** 3355,3364 ****

=C2=A0 (defun tramp-handle-unhandled-file-name-directory (_filename)
=C2=A0 =C2=A0 "Like `unhandled-file-name-directory' for Tramp file= s."
!=C2=A0 =C2=A0;; With Emacs 23, we could simply return `nil'.=C2=A0 But= we must keep it
!=C2=A0 =C2=A0;; for backward compatibility.=C2=A0 "~/" cannot be= returned, because
!=C2=A0 =C2=A0;; there might be machines without a HOME directory (like hyd= ra).
!=C2=A0 =C2=A0"/")

=C2=A0 (defun tramp-handle-set-visited-file-modtime (&optional time-lis= t)
=C2=A0 =C2=A0 "Like `set-visited-file-modtime' for Tramp files.&qu= ot;
--- 3355,3365 ----

=C2=A0 (defun tramp-handle-unhandled-file-name-directory (_filename)
=C2=A0 =C2=A0 "Like `unhandled-file-name-directory' for Tramp file= s."
!=C2=A0 =C2=A0;; Starting with Emacs 23, we must simply return `nil'.= =C2=A0 But we must
!=C2=A0 =C2=A0;; keep backward compatibility, also with XEmacs.=C2=A0 "= ;~/" cannot be
!=C2=A0 =C2=A0;; returned, because there might be machines without a HOME !=C2=A0 =C2=A0;; directory (like hydra).
!=C2=A0 =C2=A0(and (< emacs-major-version 23) "/"))

=C2=A0 (defun tramp-handle-set-visited-file-modtime (&optional time-lis= t)
=C2=A0 =C2=A0 "Like `set-visited-file-modtime' for Tramp files.&qu= ot;
--8<---------------cut here---------------end--------------->8---

Best regards, Michael.



--
David Hull
--047d7bdc0dd24cf3520512ac4d68-- From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 01 13:33:10 2015 Received: (at 20233-done) by debbugs.gnu.org; 1 Apr 2015 17:33:10 +0000 Received: from localhost ([127.0.0.1]:42643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdMVq-0006Do-Ei for submit@debbugs.gnu.org; Wed, 01 Apr 2015 13:33:10 -0400 Received: from mout.gmx.net ([212.227.15.19]:62577) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdMVo-0006DY-95 for 20233-done@debbugs.gnu.org; Wed, 01 Apr 2015 13:33:09 -0400 Received: from detlef.gmx.de ([79.195.4.85]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0M8edX-1ZQns74A3H-00wHyq; Wed, 01 Apr 2015 19:33:01 +0200 From: Michael Albinus To: David Hull Subject: Re: bug#20233: 24.5rc1; tramp error opening file References: <87h9t1znhv.fsf@gmx.de> <87twx1rpcf.fsf@gmx.de> <87fv8kwdcb.fsf@gmx.de> Date: Wed, 01 Apr 2015 19:32:59 +0200 In-Reply-To: (David Hull's message of "Wed, 1 Apr 2015 09:35:24 -0700") Message-ID: <87mw2rsqic.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:suSfKGiklVFV4DzoW/c6lYUH6yYfWwfE7ywS/gM/UJZdWsAD8Es nJvB/ZeQ+Qj1/Qdn4SBVqPucFWG8Bs3Lux3JbywN9wY5nBcSOX6MOmRJUM0bSGJnrV0PZGb uILfLmYXEb6E2HVyFEFjWfTYx6vOhqPwfmB0ARmlp4vDkVbV4U3v2802EF+YxIqAb6q3JOR upq5Jwp73i2J2w8u9yKnw== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20233-done Cc: 20233-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Version: 24.5 David Hull writes: > Yes, that patch fixes the problem for me. Thanks! Thanks for testing, David! I'm closing the bug. There will be an RC2 of Emacs 24.5, which should contain the fix. Best regards, Michael. From unknown Fri Jun 20 18:18:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 30 Apr 2015 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator