delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/04/14/06:36:25

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 15BF9396EC3D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1618396581;
bh=q4ypWa/2EP/VgC1qQwDBoi3l0MLFwSHhcMZsy3ZZEUU=;
h=Date:To:In-Reply-To:Subject:List-Id:List-Unsubscribe:List-Archive:
List-Post:List-Help:List-Subscribe:From:Reply-To:From;
b=qeVhoOeRcQgZInxujS8FF7ouIery3eNeIiCoUrhHVtMatG+C2vbHJQW/Gx1wcR0LP
c06dJthtBmtMsujchA2wAU1UGmwafRZyDdHdX/GvuaDbhFDYX67u6APB6K2f33OHgg
h0YUtYpCcAb0lImL82cRwMIa2peGqjkJ4j/D3TuQ=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E1E4F385E02D
Date: Wed, 14 Apr 2021 12:36:14 +0200 (CEST)
To: cygwin <cygwin AT cygwin DOT com>
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 AT free DOT 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
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: akiki--- via Cygwin <cygwin AT cygwin DOT com>
Reply-To: akiki AT free DOT fr
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 13EAaO9E025645

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 ... 


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019