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#18751: 25.0.50; Unable to copy hidden (dot) files from remote shared server (Linux) to local machine (OSX). Date: Mon, 03 Nov 2014 15:42:44 +0100 Message-ID: <87r3xk2vmj.fsf@gmx.de> References: <877fzvb7xt.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415025844 25265 80.91.229.3 (3 Nov 2014 14:44:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Nov 2014 14:44:04 +0000 (UTC) Cc: 18751@debbugs.gnu.org To: Keith David Bershatsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 03 15:43:56 2014 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 1XlIrM-0005OF-5o for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Nov 2014 15:43:56 +0100 Original-Received: from localhost ([::1]:35262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlIrL-0006E3-RN for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Nov 2014 09:43:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlIqa-00054I-Vl for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2014 09:43:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlIqU-0002tR-PZ for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2014 09:43:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlIqU-0002tK-NA for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2014 09:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XlIqU-0000fk-7w for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2014 09:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Nov 2014 14:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18751-submit@debbugs.gnu.org id=B18751.14150257782574 (code B ref 18751); Mon, 03 Nov 2014 14:43:02 +0000 Original-Received: (at 18751) by debbugs.gnu.org; 3 Nov 2014 14:42:58 +0000 Original-Received: from localhost ([127.0.0.1]:46969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XlIqP-0000fS-JK for submit@debbugs.gnu.org; Mon, 03 Nov 2014 09:42:57 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:61322) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XlIqM-0000fD-AD for 18751@debbugs.gnu.org; Mon, 03 Nov 2014 09:42:55 -0500 Original-Received: from detlef.gmx.de ([87.146.59.25]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0LhwLy-1YOEUR0rWU-00nDav; Mon, 03 Nov 2014 15:42:45 +0100 In-Reply-To: <877fzvb7xt.fsf@gmx.de> (Michael Albinus's message of "Mon, 20 Oct 2014 07:56:30 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:nsenpHjciIP1Ix7eYjoZyfZd8EczzOPwAhEwL29v40VzWRcSdpd ry4R/Pl8PzkL7TKhMeg8NucG7KJoVTc2uDEbCH+akOfY7PYCzyT61Y39gOffBYFnLv1kJgu JdkBguFsY8Gp3TQVFMvfb/0UhA8Q0fulN2n255BbO9zqlZlVHyqy2kRAGmyX+36r9rQ0xVe PHXiZOgHikim/GdXFvSzw== 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:95426 Michael Albinus writes: Hi Keith, >> Evaluating `(tramp-do-copy-or-rename-file 'copy filename new-filename >> t t t)` is working well on all individual files, including >> `.www.my.cnf`. >> >> `dired-do-copy` is working well on all individual files, and on >> multiple marked files. >> >> However, `dired-do-copy` cannot handle any remote directory on the >> remote server with files inside it. Placing the cursor on any >> directory on the remote server and issuing the command `dired-do-copy` >> results in only that folder being copied to the local machine, but >> noting inside it gets copied over. > > Thanks for this precision. Now I'm able to reproduce the problem, even > with older Emacs versions. Finally, I could fix it. I've committed the following patch to the emacs-24 branch (shall appear in the trunk in a few days): --8<---------------cut here---------------start------------->8--- *** /home/albinus/src/emacs-24/lisp/net/tramp-sh.el.~117655~ 2014-11-03 15:37:00.228854359 +0100 --- /home/albinus/src/emacs-24/lisp/net/tramp-sh.el 2014-11-03 15:22:10.311994500 +0100 *************** *** 2061,2071 **** KEEP-DATE is non-nil if NEWNAME should have the same timestamp as FILENAME." (with-temp-buffer ;; We must disable multibyte, because binary data shall not be ! ;; converted. (set-buffer-multibyte nil) (let ((coding-system-for-read 'binary) ! (jka-compr-inhibit t)) ! (insert-file-contents-literally filename)) ;; We don't want the target file to be compressed, so we let-bind ;; `jka-compr-inhibit' to t. (let ((coding-system-for-write 'binary) --- 2061,2075 ---- KEEP-DATE is non-nil if NEWNAME should have the same timestamp as FILENAME." (with-temp-buffer ;; We must disable multibyte, because binary data shall not be ! ;; converted. `insert-file-contents-literally' does not support ! ;; file name handlers for GNU Emacs; we must create a local copy ! ;; therefore. (set-buffer-multibyte nil) (let ((coding-system-for-read 'binary) ! (jka-compr-inhibit t) ! (tmpfile (file-local-copy filename))) ! (insert-file-contents-literally (or tmpfile filename)) ! (when tmpfile (delete-file tmpfile))) ;; We don't want the target file to be compressed, so we let-bind ;; `jka-compr-inhibit' to t. (let ((coding-system-for-write 'binary) --8<---------------cut here---------------end--------------->8--- Could you, please, check it? Best regards, Michael.