* 12/31/1969 & 1/1/70 File Dates
@ 2001-12-19 4:53 benhz
2001-12-19 8:01 ` Adam Price
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: benhz @ 2001-12-19 4:53 UTC (permalink / raw)
During my upgrade from 4.0D -> 4.0F -> 5.0a -> 5.1 my system clock got
messed up and many of the file dates are Jan 1, 1970 and Dec 31, 1969
which has been causing havoc with the system. For example, the kernel
would not build until all the files in /usr/sys were "find /usr/sys
-exec touch {} \;" with the current date. Now there are other strange
behaviors, such as ./configure scripts fail with
configure: error: installation or configuration problem: C++ compiler
cannot create executables.
I would really not like to do a "find / -exec touch {} \;" to correct
the problem (if that is the case) so:
??? Can someone either shed some light on the subject
or
??? Can someone send me a script that will only find and touch files
with either 12/31/1969 or 1/1/1970 dates?
Thanks,
Ben
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: 12/31/1969 & 1/1/70 File Dates
2001-12-19 4:53 12/31/1969 & 1/1/70 File Dates benhz
@ 2001-12-19 8:01 ` Adam Price
2001-12-19 12:48 ` Andrew Duane USG
2001-12-19 14:29 ` Peter da Silva
2 siblings, 0 replies; 5+ messages in thread
From: Adam Price @ 2001-12-19 8:01 UTC (permalink / raw)
"benhz" <benhz@yahoo.com> wrote in message news:3C201CF9.542CE279@yahoo.com...
>
> During my upgrade from 4.0D -> 4.0F -> 5.0a -> 5.1 my system clock got
> messed up and many of the file dates are Jan 1, 1970 and Dec 31, 1969
> which has been causing havoc with the system. For example, the kernel
> would not build until all the files in /usr/sys were "find /usr/sys
> -exec touch {} \;" with the current date. Now there are other strange
> behaviors, such as ./configure scripts fail with
>
> configure: error: installation or configuration problem: C++ compiler
> cannot create executables.
>
> I would really not like to do a "find / -exec touch {} \;" to correct
> the problem (if that is the case) so:
>
> ??? Can someone either shed some light on the subject
>
> or
>
> ??? Can someone send me a script that will only find and touch files
> with either 12/31/1969 or 1/1/1970 dates?
>
> Thanks,
> Ben
>
Ben,
I don't have a script to fix it, but I do know where the problem was, and
it wasn't the system clock.
In one of the V5's (Cant remember which) there was a bug in the cdfs code
which handled dates, it was fixed in a patch. When you upgraded you didn't
install the patch. When you jumped to the next version all of the files on
the cd had dates around 1970.
No comfort I know, but at least you know it wasn't hardware.
I just went back to the V4 backup and started again, but this may not
be an option for you.
Adam
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: 12/31/1969 & 1/1/70 File Dates
2001-12-19 4:53 12/31/1969 & 1/1/70 File Dates benhz
2001-12-19 8:01 ` Adam Price
@ 2001-12-19 12:48 ` Andrew Duane USG
2001-12-21 3:01 ` ben
2001-12-19 14:29 ` Peter da Silva
2 siblings, 1 reply; 5+ messages in thread
From: Andrew Duane USG @ 2001-12-19 12:48 UTC (permalink / raw)
In article <3C201CF9.542CE279@yahoo.com> benhz <benhz@yahoo.com> writes:
> ??? Can someone send me a script that will only find and touch files
>with either 12/31/1969 or 1/1/1970 dates?
If you do a "man find", you will see the options "-atime" and "-mtime"
which control the access and modification times of the files you want
to look for. Specify a large number of days (1/1/1970 was about 10,000
days ago).
And this likely was the CDFS problem just mentioned. I was the
one who patched it. :-)
--
Andrew L. Duane (JOT-7) duane@zk3.dec.com
Compaq Computer Corporation (603)-884-1294
110 Spit Brook Road
M/S ZKO3-3/U14
Nashua, NH 03062-2698
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 12/31/1969 & 1/1/70 File Dates
2001-12-19 12:48 ` Andrew Duane USG
@ 2001-12-21 3:01 ` ben
0 siblings, 0 replies; 5+ messages in thread
From: ben @ 2001-12-21 3:01 UTC (permalink / raw)
Andrew Duane USG wrote:
> In article <3C201CF9.542CE279@yahoo.com> benhz <benhz@yahoo.com> writes:
>
>> ??? Can someone send me a script that will only find and touch files
>>with either 12/31/1969 or 1/1/1970 dates?
>>
>
> If you do a "man find", you will see the options "-atime" and "-mtime"
> which control the access and modification times of the files you want
> to look for. Specify a large number of days (1/1/1970 was about 10,000
> days ago).
>
> And this likely was the CDFS problem just mentioned. I was the
> one who patched it. :-)
>
> --
>
> Andrew L. Duane (JOT-7) duane@zk3.dec.com
> Compaq Computer Corporation (603)-884-1294
> 110 Spit Brook Road
> M/S ZKO3-3/U14
> Nashua, NH 03062-2698
>
>
>
Thanks. Is there a Mark H. who works in your group and lives in Hollis?
If so say "Hi" and Merry Xmas for me.
-Ben
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 12/31/1969 & 1/1/70 File Dates
2001-12-19 4:53 12/31/1969 & 1/1/70 File Dates benhz
2001-12-19 8:01 ` Adam Price
2001-12-19 12:48 ` Andrew Duane USG
@ 2001-12-19 14:29 ` Peter da Silva
2 siblings, 0 replies; 5+ messages in thread
From: Peter da Silva @ 2001-12-19 14:29 UTC (permalink / raw)
In article <3C201CF9.542CE279@yahoo.com>, benhz <benhz@yahoo.com> wrote:
> ??? Can someone either shed some light on the subject
The time encoding on UNIX is such that numbers near zero correspond to
those times (actually, 0 is the beginning of 1970 at Greenwich).
> ??? Can someone send me a script that will only find and touch files
> with either 12/31/1969 or 1/1/1970 dates?
find / -mtime +3650 -exec touch '{}' ';'
That will only touch files more than 10 years old. I suspect that's long
enough you won't find any files with real dates that far back.
--
`-_-' In hoc signo hack, Peter da Silva.
'U` "A well-rounded geek should be able to geek about anything."
-- nicolai@esperi.org
Disclaimer: WWFD?
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-12-21 3:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-19 4:53 12/31/1969 & 1/1/70 File Dates benhz
2001-12-19 8:01 ` Adam Price
2001-12-19 12:48 ` Andrew Duane USG
2001-12-21 3:01 ` ben
2001-12-19 14:29 ` Peter da Silva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox