[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fractional file timestamps in tramp-adb

From: Paul Eggert
Subject: Re: fractional file timestamps in tramp-adb
Date: Thu, 14 Feb 2019 15:41:31 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0

On 2/14/19 12:23 PM, Michael Albinus wrote:

It doesn't work, at least on my Galaxy S6: --8<---------------cut here---------------start------------->8--- $ touch -d 2019-02-14T18:23:17.318491822Z /sdcard/tmp/foo touch: bad '2019-02-14T18:23:17.318491822': Value too large for defined data type

Interesting. Does it work without the ".318491822" but keep the "Z"?

How about if you replace ".31849182" with ".000000000" while keeping the "Z"?

Can you strace the 'touch' and see what system calls are failing and what their arguments are? On my platform, if the file /tmp/foo already exists and is writeable, then the command:

strace touch -d 2019-02-14T18:23:17.318491822Z /tmp/foo


openat(AT_FDCWD, "/tmp/foo", O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK, 0666) = 3
dup2(3, 0)                              = 0
close(3)                                = 0
utimensat(0, NULL, [{tv_sec=1550168597, tv_nsec=318491822} /* 
2019-02-14T10:23:17.318491822-0800 */, {tv_sec=1550168597, tv_nsec=318491822} 
/* 2019-02-14T10:23:17.318491822-0800 */], 0) = 0

reply via email to

[Prev in Thread] Current Thread [Next in Thread]