delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
Date: | Tue, 25 Apr 2006 13:15:55 +0200 |
To: | cygwin AT cygwin DOT com |
X-UMS: | |
X-Mailer: | TOI Kommunikationscenter V7-0-3 |
Subject: | [Patch] patch -Z not working if timestamp contains seconds >=59.5 |
From: | "Christian Franke" <Christian DOT Franke AT t-online DOT de> |
Message-ID: | <1FYLWN-0KKWBs0@fwd33.aul.t-online.de> |
X-ID: | Sx7ayoZBYe676Ql63RrGfbflF7nJecwUrT6QV9rQpdR9DVNSfm0eEV AT t-dialin DOT net |
X-TOI-MSGID: | 0a14bb29-1dd8-4564-b8d0-301d95cb9a21 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
--=_df035c6e8a3fe702fd1e15d70fa318ad Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Hi, the patch 2.5.8-8 options -Z and -T do not set filetime if the seconds part of the timestamp is greater or equal 59.5 This is because maketime() does not handle "denormalized" times and returns an error on tm_sec = 60. The attached patch is a quick fix (and a testcase ;-) for this issue. Christian --=_df035c6e8a3fe702fd1e15d70fa318ad Content-Type: text/plain; name="patch-utime.patch.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch-utime.patch.txt" ZGlmZiAtcnVwIHBhdGNoLTIuNS44LTgub3JpZy9wYXJ0aW1lLmMgcGF0Y2gt Mi41LjgtOC9wYXJ0aW1lLmMNCi0tLSBwYXRjaC0yLjUuOC04Lm9yaWcvcGFy dGltZS5jCTIwMDItMTItMTUgMjE6Mzc6MzIuMDAxMDAwMDAwICswMTAwDQor KysgcGF0Y2gtMi41LjgtOC9wYXJ0aW1lLmMJMjAwNi0wNC0yNSAxMjoxNDo1 OS43OTcxNjg1MDAgKzAyMDANCkBAIC03NTMsNiArNzUzLDggQEAgcGFyc2Vf cGF0dGVybl9sZXR0ZXIgKHMsIGMsIHQpDQogCWludCBmcmFjOw0KIAlzID0g cGFyc2VfZGVjaW1hbCAocywgMiwgMCwgNjAsIDEsICZ0LT50bS50bV9zZWMs ICZmcmFjKTsNCiAJdC0+dG0udG1fc2VjICs9IGZyYWM7DQorCWlmICh0LT50 bS50bV9zZWMgPiA1OSkNCisJICB0LT50bS50bV9zZWMgPSA1OTsNCiAgICAg ICB9DQogICAgICAgYnJlYWs7DQogDQo= --=_df035c6e8a3fe702fd1e15d70fa318ad Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ --=_df035c6e8a3fe702fd1e15d70fa318ad--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |