From: michal@gortel.phys.ualberta.ca (Michal Jaegermann)
Subject: Re: How can I change year 2018 to 1998
Date: 1998/10/16 [thread overview]
Message-ID: <707r55$qec$1@pulp.ucs.ualberta.ca> (raw)
In-Reply-To: rz7iuhmch36.fsf@corton.inria.fr
Robert Harley (harley@corton.inria.fr) wrote:
: > How can I fix this? The month and day are all right.
: I wrote a tiny program called "chyear":
Unfortunately it has two problems. One - it is using 'stat'
instead of 'lstat' so it will dereference symbolic links.
Two - even if you will look at a link and not an underlying inode
then 'utime' seems to follow links as well. Sigh! Frankly, I do
not know if the later is a required behaviour or bug in glibc.
Manpage seem to suggest a bug; it does not say anything about
links but talks in terms of inodes.
If you do not care about dates on links then 'touch' will work
equally well without writing any C and compiling anything. Type
'touch --help' to see for yourself. :-) It will even do multiple
files in one go instead of walking them one-by-one.
Michal
next prev parent reply other threads:[~1998-10-16 4:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-13 4:00 How can I change year 2018 to 1998 G. Hugh SONG
1998-10-15 4:00 ` Robert Harley
1998-10-16 4:00 ` Tan Wee Yeh
1998-10-16 4:00 ` Alex Rhomberg
1998-10-16 4:00 ` Michal Jaegermann [this message]
1998-10-19 4:00 ` Robert Harley
1998-10-19 4:00 ` Michal Jaegermann
1998-10-16 4:00 ` Joseph Sarkes
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