delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:reply-to:reply-to:to:message-id | |
:subject:mime-version:content-type:content-transfer-encoding | |
:references; q=dns; s=default; b=FjVdmrYcz030D0wG6TfEDwkHwnYCYjg | |
T+FIDZU5mbJSOTAmjubI37P7dNtAIYLegpmLs2uDFQDgOHEmcIqoz7xcYMGQ4PFj | |
SMNN5yyUHrWheB0IRZ5RyM3xjFh1RkF80mS2spKQtXjLIFZLzx0fcjXlMqgPDDtb | |
8vLQ07sVouFY= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:reply-to:reply-to:to:message-id | |
:subject:mime-version:content-type:content-transfer-encoding | |
:references; s=default; bh=owYpHv92fk2n0hb1TlATJ3CdgbM=; b=E0vTY | |
JaInw0klwaieqM/EmMYsEkjdM84VXHbfLYOeB8dMn07/DyVRHciHo5tsoUo345J/ | |
fzQOBEplDqe0jrPtwTfTm9BGfqt3dn+s6vSQVSyq6VPdPb2niZd4L79mnSwzYAnq | |
C2bczuGwq3hgS+70BwrSFMsc0Fz/TayND38cUs= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FORGED_MUA_MOZILLA,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,GIT_PATCH_2,LOTS_OF_MONEY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=1979, Panel, HTo:D*ab.ca, H*x:5.0 |
X-HELO: | sonic309-48.consmr.mail.ne1.yahoo.com |
Date: | Tue, 25 Jul 2017 21:48:01 +0000 (UTC) |
From: | "Ian Lambert via cygwin" <cygwin AT cygwin DOT com> |
Reply-To: | Ian Lambert <ian DOT lambert_42 AT yahoo DOT com> |
Reply-To: | Ian Lambert <ian DOT lambert_42 AT yahoo DOT com> |
To: | <cygwin AT cygwin DOT com>, <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> |
Message-ID: | <1036849022.821922.1501019281615@mail.yahoo.com> |
Subject: | Re: how to access and display apps that I've launched |
MIME-Version: | 1.0 |
References: | <1036849022 DOT 821922 DOT 1501019281615 DOT ref AT mail DOT yahoo DOT com> |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id v6PLqJVh030120 |
-------------------------------------------- On Tue, 7/25/17, Brian Inglis <> wrote: Subject: Re: how to access and display apps that I've launched To: cygwin Date: Tuesday, July 25, 2017, 3:57 PM On 2017-07-25 12:16, Achim Gratz wrote: > Brian Inglis writes: >> rebaselst uses touch -t 7001010000 ... - could be patched to 197001010000. > > Could be, but touch is specified to assume "19" yhen YY=70 by POSIX, AFAIK. > >> Is this affected by locale and by Windows regional date settings in Control >> Panel/Region/Formats tab/Additional settings... button/Date tab/Calendar >> group/When a two-digit year is entered, interpret it as a year between >> |(nnnn-99)| and [nnnn ^v] with the default values |1980| and [2079 ^v] i.e. from >> the start of the DOS epoch which postdates the Unix epoch 19700101, and could >> cause 70 to be interpreted as 2070. > > That would be surprising since the expectation really is UNIX epoch when > we're talking about Cygwin. In any case, the OP should easily be able > to test this at the shell prompt. I know POSIX says and my tests on current releases verify 1969-99, 2000-68, but could this be thrown off by localization interfering in some cases, as was /proc/loadavg, because a function started using locales? These files and related functions do not seem candidates to be affected by the recent patch for ls problems with symlinks, so BLODA blocking pre-1980 times? = = = There is a change to "invalid argument" somewhere from 1980 to 1979, but it also involves permissions. Permission denied comes from the chmod 444 in /bin/rebaselst I think. Otherwise with write permission touch gives invalid argument. Either way, it changes the files to current date-time, not an earlier time, when it fails. $ for f in * ; do echo $f ; touch -t 198001010000 $f ; done fullrebase.done rebase_all rebase_dyn rebase_exe rebase_lst rebase_pkg rebase_user rebase_user_exe $ for f in * ; do echo $f ; touch -t 197901010000 $f ; done fullrebase.done touch: setting times of 'fullrebase.done': Invalid argument rebase_all touch: setting times of 'rebase_all': Invalid argument rebase_dyn touch: cannot touch 'rebase_dyn': Permission denied rebase_exe touch: cannot touch 'rebase_exe': Permission denied rebase_lst touch: cannot touch 'rebase_lst': Permission denied rebase_pkg touch: cannot touch 'rebase_pkg': Permission denied rebase_user touch: cannot touch 'rebase_user': Permission denied rebase_user_exe touch: cannot touch 'rebase_user_exe': Permission denied The "bad" part of strace of a file with write permission is: 3524 fhandler_base::utimens_fs: incoming lastaccess 0x10EDB8D0 0x0 86 285905 [main] touch 3524 seterrno_from_nt_status: /home/corinna/src/cygwin/cygwin-2.8.2/cygwin-2.8.2-1.x86_64/src/newlib-cygwin/winsup/cygwin/fhandler_disk_file.cc:1385 status 0xC000000D -> windows error 87 30 285935 [main] touch 3524 geterrno_from_win_error: windows error 87 == errno 22 22 285957 [main] touch 3524 futimens: -1 = futimens(0, 0xFFFFC950) 22 285979 [main] touch 3524 close: close(0) 23 286002 [main] touch 3524 fhandler_base::close: closing '/var/cache/rebase/rebase_all' handle 0x240 178 286180 [main] touch 3524 close: 0 = close(0) touch 558 286738 [main] touch 3524 write: 5 = write(2, 0xFFFFCC50, 5) : 47 286785 [main] touch 3524 write: 1 = write(2, 0x180229941, 1) 45 286830 [main] touch 3524 write: 1 = write(2, 0x180229935, 1) setting times of 116 286946 [main] touch 3524 write: 17 = write(2, 0x100414923, 17) 'rebase_all' 38 286984 [main] touch 3524 write: 12 = write(2, 0x10041C080, 12) : 106 287090 [main] touch 3524 write: 2 = write(2, 0x180229945, 2) Invalid argument 41 287131 [main] touch 3524 write: 16 = write(2, 0x180229C60, 16) 189 287320 [main] touch 3524 write: 1 = write(2, 0x1801FC9A7, 1) 184 287504 [main] touch 3524 close: close(1) 18 287522 [main] touch 3524 fhandler_base::close: closing '' handle 0x204 17 287539 [main] touch 3524 close: 0 = close(1) 211 287750 [main] touch 3524 close: close(2) 19 287769 [main] touch 3524 fhandler_base::close: closing '' handle 0x200 24 287793 [main] touch 3524 close: 0 = close(2) 177 287970 [main] touch 3524 do_exit: do_exit (256), exit_state 1 25 287995 [main] touch 3524 void: 0x0 = signal (20, 0x1) 19 288014 [main] touch 3524 void: 0x0 = signal (1, 0x1) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |