From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: fractional file timestamps in tramp-adb Date: Sat, 16 Feb 2019 09:33:29 +0100 Message-ID: <87d0nsceue.fsf@gmx.de> References: <281200e8-bc54-e390-94f8-895345af524c@cs.ucla.edu> <878syidsrf.fsf@gmx.de> <27d01654-9b2e-3bf2-7eca-146854b68a0c@cs.ucla.edu> <87zhqxcvyj.fsf@gmx.de> <4725294c-4855-5b2c-a053-cee9177bc8ef@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="78694"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Emacs development discussions To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 16 09:34:42 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1guvQl-000KIW-Q8 for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2019 09:34:39 +0100 Original-Received: from localhost ([127.0.0.1]:53267 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guvQk-0003lP-K1 for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2019 03:34:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guvQ3-0003lH-GT for emacs-devel@gnu.org; Sat, 16 Feb 2019 03:33:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guvQ0-0005hU-Do for emacs-devel@gnu.org; Sat, 16 Feb 2019 03:33:55 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:60153) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1guvPw-0005HT-31 for emacs-devel@gnu.org; Sat, 16 Feb 2019 03:33:49 -0500 Original-Received: from detlef.gmx.de ([212.86.59.221]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LikE1-1hUo3q38Qv-00cuqT; Sat, 16 Feb 2019 09:33:31 +0100 In-Reply-To: <4725294c-4855-5b2c-a053-cee9177bc8ef@cs.ucla.edu> (Paul Eggert's message of "Fri, 15 Feb 2019 14:37:32 -0800") X-Provags-ID: V03:K1:SCfFUfj8JV8EOUwC0YY3hZ2qnEQkghFyKqaMFXLaigv95kcnGzY TpquI/r640SusOPlQ74N2CeXMwGPPWrnB2+iLXUh2OMsWEr89O8dLv0GI1maEq0dfybd3BD +PdFLtDPzK8uDArWwABN5h7pWfuUQhm7GWcsK27alGeVm6hSf3VuTBVk9gjf15DUDUwi+uB gb29v9Z+3Fs/QwQ6H7mng== X-UI-Out-Filterresults: notjunk:1;V03:K0:mGjgD53A5Tw=:mPcMV2HJMa1ad/7NxqykVE uS1gZZ0tvZT1uWf+ztG+Owx5y+SCvGzOv5RwSehgLEDwTDQC31k29Bao0gE5AJKqfuG4+411M zzYRKMeYEhRnIVaOOMz31HFe+vk2lzLoI2UoIequXLQdrVIS51D9tts7gs3MfFgu3Jepl7Oo1 WVxqy1VBcDp3hK0Ov1sF+sb0SsVg3m1yDf003a1nCNa/t0vYOr01GwpGNvRekVGKY7qiJNiD9 Cacra2ZmzTqNivPaRb/WWlcw+oYu1t1lqqObEqhsG0Bu0uK5oYafV/QLN6duu8QmpoTFVNJAN SjUcNme0i0sTbN4DKFuciwfvGY60OVoePzWzJZO10fhAtH5Rn5cAAOFeDwEWdptM1Bv1MjfG2 2kNth5xe+8WY7RnHcY7ctSZyDrDnAdLLirf+xPIqB+YXx7gJtqEgpjfUCS5ayqAxeC5o3/utB /LVa4yVDVPAj5uN4UAeDnsSttGlt5KClvV4A8yCFPLcrfi3FC/QGRHDDu9W0Pbe0FmNrsRhC+ PR6MmZk0jF5qHemIVmml1TipnvuvQ7sKSanBfLvE4GBE/EBrenG8uHtWyL3fcH9wxmzneUSSI 62gAa2LsHbVvHP1bTmoxWa6tZ7s3RquztKV1pZeAu1DZNYyc7xEXbmLb4UYzoQlg3Mon/KlH+ wktt50cxU4k7ZJT4cDUYF+PManyQ89CP0F/IsirhbX3TnsFEJX5pF7blOqNAu4lZC3b9phTQq 7+KGzaaXwuHQZNYnX1OC2xAlo5eXh7Foma4uD/mTzuP3de0GqMFm7NwCzTxF3bgXw5siSGFW X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.18 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233413 Archived-At: Paul Eggert writes: Hi Paul, > Older versions of toybox touch mishandle nanoseconds, and perhaps > you've run into one of those. How about the attached patch, to try > fractional timestamps (with "Z" for UTC) if it works, and fall back on > the existing code otherwise? Plus, we can fall back on touch -t for > hosts that don't yet support POSIX-2008, though that may be overkill > nowadays. Looks good. I've pushed it to both Emacs and Tramp repositories, in your name. A further improvement could be to check once, after connection is established, which touch flavor works, and to apply only this pattern. Otherwise, on non-rooted devices (like my Galaxy S6) all touch versions are always applied, because they fail at least with "permission denied". But I don't know whether this is worth the effort ... Thanks, and best regards, Michael.