From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,51db6ea6453f12d0 X-Google-Attributes: gid111c93,public From: Craig Burley Subject: Re: 20 year problem with Alpha Date: 1998/07/24 Message-ID: #1/1 X-Deja-AN: 374543089 References: <6ySrhLxpz5B@nowhere.hit.handshake.de> Organization: Cygnus Support Newsgroups: comp.os.linux.alpha 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