From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lars Hansen Newsgroups: gmane.emacs.devel Subject: Re: Tramp keep-time broken Date: Wed, 12 Feb 2003 12:18:28 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3E4A2D84.20107@math.ku.dk> References: <3E49670A.9000404@math.ku.dk> <8465rqaqb5.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1045048876 22113 80.91.224.249 (12 Feb 2003 11:21:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Feb 2003 11:21:16 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18iuwd-0005jg-00 for ; Wed, 12 Feb 2003 12:20:51 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18iv8Z-0006Nn-00 for ; Wed, 12 Feb 2003 12:33:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18iuxX-00006n-00 for emacs-devel@quimby.gnus.org; Wed, 12 Feb 2003 06:21:47 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18iuvc-0007wk-00 for emacs-devel@gnu.org; Wed, 12 Feb 2003 06:19:48 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18iuv1-0007lh-00 for emacs-devel@gnu.org; Wed, 12 Feb 2003 06:19:12 -0500 Original-Received: from [62.84.220.10] (helo=mail.dantel.dk) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18iuuJ-000716-00 for emacs-devel@gnu.org; Wed, 12 Feb 2003 06:18:27 -0500 Original-Received: from math.ku.dk [62.84.221.46] by mail.dantel.dk with ESMTP (SMTPD32-7.13) id AE444380240; Wed, 12 Feb 2003 12:21:40 +0100 User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en Original-To: =?ISO-8859-1?Q?Kai_Gro=DFjohann?= In-Reply-To: <8465rqaqb5.fsf@lucy.is.informatik.uni-duisburg.de> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11586 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11586 Kai Großjohann wrote: >It depends on the tramp method that you are using. There are inline >methods (which transfer the file through the shell connection using >base64 or uu encoding) and there are out-of-band methods (which >invoke an external program such as rcp or scp or rsync to actually >transfer the file). > > I am using methods pscp under Windows and scp under GNU/Linux. The time stamp is not preserved in any of the cases. Unless I read the code in tramp.el in a wrong way, time stamp is never preserved when copying across machines. It looks to me as a bug. >Should Tramp barf if it is requested to keep the time but can't? > > Tramp actually gives a warning, I just did not see it since one have to look in the message buffer. When i call (copy-file "~/tmp/junk" "/larsh@galois.math.ku.dk:tmp/keep" t t) (copy-file "~/tmp/junk" "/larsh@galois.math.ku.dk:tmp/new" t nil) I get tramp: Warning: cannot preserve file time stamp with inline copying across machines tramp: Writing tmp file using `pscp'... tramp: Transferring file using `pscp'...done Wrote /larsh@galois.math.ku.dk:/home/l/larsh/tmp/keep tramp: Writing tmp file using `pscp'... tramp: Transferring file using `pscp'...done Wrote /larsh@galois.math.ku.dk:/home/l/larsh/tmp/new