From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) by sourceware.org (Postfix) with ESMTPS id 432D93988889 for ; Wed, 14 Apr 2021 11:16:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 432D93988889 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=towo.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo@towo.net Received: from [192.168.178.74] ([91.65.218.78]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N3Kc6-1lei7e3BJq-010Iof for ; Wed, 14 Apr 2021 13:16:08 +0200 Subject: Re: Cygwin DLL 3.2.0 (W10) Problem with touch (8.26) for old dates < 1970 To: cygwin@cygwin.com References: <603461978.103298236.1618396574434.JavaMail.root@zimbra76-e14.priv.proxad.net> From: Thomas Wolff Message-ID: Date: Wed, 14 Apr 2021 13:16:08 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <603461978.103298236.1618396574434.JavaMail.root@zimbra76-e14.priv.proxad.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:ZWp1Y1mLz1zWc3LiZc6gpRQVGP7Wk/NzBtk9MugCBI1YekeTXMb zP/FqE2FiP8HL/ndlCeZ3AIStB+qNA7sM1wTU7szP5zJDeTjF5lYt+lsD+JjLqs9kHcDH94 XIV8fv/1g/ry++sdPh8OH1zDp4fG2tIoy8e96J+4R/5jNaCNigyfF/Baa16c1fhCSoiUgto dNNC6LZILaH6Kornos2lQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:0moppRlgTgg=:3OEsy92xSiNM9SduPqCqY4 Ma+tsIT7mfuWqHpCSI7ybJHssCQsk9OkknjQtRTU+AP4EtUhf0f91SvMktvoSIVVLdMpTQjSU 8Ag0lmXiTba0MgPomxM1/kg9o/htO8HlPVya4V8U5x0VIWveEvFgb4WF0FlpY7UssG+C0gcGD 5nm5Q0YqiH8VwdXXce9/usXUO0gh9qPWBIo0uQ7VHYzaSJ/HclsXgXZutPX9IHJWEDdfaoS8+ CRtPcL7GGQJf+Cu80tJhIFzS7N0LakRi/P88AB1BS+Q0MUxAZLYi95qIObcjU3iE/jhIL0iCQ mPFxEuLPKmq1DnJNOSScWdUkAbVqXPpqF4uXrBaHVCc2fnvtrGlFh8ON61FFiTbKAx3IhPn1u NoLPelHmLPsuzdfjJq9w3Fgu+Kzc1ol4Smpr7i89Ya5Jg/lvEFXgtKIaAn4eTF2uTmGIjDefA 2UiJZf4gXV5xQyXkmpHWAjLDAiPDNpyJXE2OuEPzIlQqpOSO/jdAWRkwG5OJzPM6hjWCiDbme RvjIDisJUqAUhexLPAgCzI= X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_NUMSUBJECT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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 11:16:11 -0000 Am 14.04.2021 um 12:36 schrieb akiki--- via Cygwin: > Hi, > I encountered problems with the use of timestamps in cygwin. > May be it's an old problem, I don't know, using essentially files "recently" created/modified. > > > I want to say after 1970 No problem, but before ... The namespace of Unix/POSIX timestamps starts in 1970. Time before that year does not exist. > To day: > touch -m -t 190001011200.00 x gives touch: format de date « 190001011200.00 » incorrect > touch -m -t 190101011200.00 x gives ok - with ls -l x: > -rw-r--r-- 1 user group 0 1 janv. 1910 x > > > touch used is well /bin/touch > > > By comparison on Ubuntu 18 LTS > touch -m -t 190001011200.00 x is correct > > > I know, timestamps are managed differently in windows and linux. > > > I see also with the new windows terminal with ubuntu > On windows file, like /mnt/c/x (windows is mounted by linux) > touch -m -t 190001011200.00 x ; echo $? gives > 0 #No error but timestamp is set to 1970-01-01 > On linux file as ~/x, it's correct; > > > So, which confidence to have with cygwin about files of timestamp 19xx before 1970. > May be it's ok after 1901. The answer is NOT. > touch -m -t 190101011200.00 x gives sometimes format de date incorrect > > > In some windows directories and more problematic, for a same directory, I don't understand why. > May be due to embedded mounts. > > > I hope to have been clear enough. > > > > Thanks for answers. > -- > Problem reports: https://cygwin.com/problems.html > FAQ: https://cygwin.com/faq/ > Documentation: https://cygwin.com/docs.html > Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple