From: Craig Burley <burley@tweedledumb.cygnus.com>
Subject: Re: 20 year problem with Alpha
Date: 1998/07/24 [thread overview]
Message-ID: <y6u347z3vb.fsf@tweedledumb.cygnus.com> (raw)
In-Reply-To: 6ySrhLxpz5B@nowhere.hit.handshake.de
t.bauer@nowhere.handshake.de (Torsten Bauer) writes:
> But what should I do with the other directories and files? So I get
> sometimes a lot of failures, like clock skew detected, ...
A partial solution I've used is this:
log in as `root'
do this in bash:
touch /foo; find / -newer /foo \! -type l -exec touch {} \;
rm /foo
However, this doesn't fix symbolic links, which are purposely
excluded because, if included, touch actually `touches' the
non-symlinks to which they ultimately point, not the links
themselves. (And you don't necessarily want to do that, though
I did and it seems to have led to no problems. That is, while
a link might be 2018-dated, the file or directory to which it
points might not be, in which case touching it is not necessary,
and perhaps not appropriate.)
I haven't bothered to find a solution to the problem of fixing
the dates on symbolic links. It surprises me that GNU `touch'
doesn't offer a --no-dereference option for this, but perhaps
there's no way to do it in UNIX anyway, other than to save the
symbolic-link string, delete the link, then reinstate it -- which
would set the date only to the current date, while touch supports
so much more. (For that matter, I'd like a --verbose option
as well.)
(Note that if you want more cleverness, you can provide options
to `touch' to set the date/times to something other than current --
in fact, this is arguably better in this case, since 2018 dates
probably correspond to dates *before* when you fixed your
configuration. Read the docs for more details.)
Disclaimer: If any of the above advice results in your toasting
your system, I'm sorry, but that's about all. :)
--
"Practice random senselessness and act kind of beautiful."
James Craig Burley, Software Craftsperson burley@gnu.org
next prev parent reply other threads:[~1998-07-24 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-23 4:00 20 year problem with Alpha Torsten Bauer
1998-07-24 4:00 ` John Walstra
1998-07-24 4:00 ` Craig Burley [this message]
1998-07-24 4:00 ` Robert Harley
1998-07-25 4:00 ` Craig Burley
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox