From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by sourceware.org (Postfix) with ESMTPS id E1E4F385E02D for ; Wed, 14 Apr 2021 10:36:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E1E4F385E02D Received: from zimbra76-e14.priv.proxad.net (unknown [172.20.243.226]) by smtp3-g21.free.fr (Postfix) with ESMTP id 8AFDF13F85A for ; Wed, 14 Apr 2021 12:36:14 +0200 (CEST) Date: Wed, 14 Apr 2021 12:36:14 +0200 (CEST) From: akiki@free.fr To: cygwin Message-ID: <603461978.103298236.1618396574434.JavaMail.root@zimbra76-e14.priv.proxad.net> In-Reply-To: <369474148.103071581.1618392198922.JavaMail.root@zimbra76-e14.priv.proxad.net> Subject: Cygwin DLL 3.2.0 (W10) Problem with touch (8.26) for old dates < 1970 MIME-Version: 1.0 X-Originating-IP: [90.109.7.32] X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - GC89 (Win)/7.2.0-GA2598) X-Authenticated-User: akiki@free.fr X-Spam-Status: No, score=1.5 required=5.0 tests=BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, JMQ_SPF_NEUTRAL, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2021 10:36:19 -0000 Hi,=20 I encountered problems with the use of timestamps in cygwin.=20 May be it's an old problem, I don't know, using essentially files "recently= " created/modified.=20 I want to say after 1970 No problem, but before ...=20 To day:=20 touch -m -t 190001011200.00 x gives touch: format de date =C2=AB 1900010112= 00.00 =C2=BB incorrect=20 touch -m -t 190101011200.00 x gives ok - with ls -l x:=20 -rw-r--r-- 1 user group 0 1 janv. 1910 x=20 touch used is well /bin/touch=20 By comparison on Ubuntu 18 LTS=20 touch -m -t 190001011200.00 x is correct=20 I know, timestamps are managed differently in windows and linux.=20 I see also with the new windows terminal with ubuntu=20 On windows file, like /mnt/c/x (windows is mounted by linux)=20 touch -m -t 190001011200.00 x ; echo $? gives=20 0 #No error but timestamp is set to 1970-01-01=20 On linux file as ~/x, it's correct;=20 So, which confidence to have with cygwin about files of timestamp 19xx befo= re 1970.=20 May be it's ok after 1901. The answer is NOT.=20 touch -m -t 190101011200.00 x gives sometimes format de date incorrect=20 In some windows directories and more problematic, for a same directory, I d= on't understand why.=20 May be due to embedded mounts.=20 I hope to have been clear enough.=20 Thanks for answers.