Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Robert Harley <harley@corton.inria.fr>
Subject: Re: How can I change year 2018 to 1998
Date: 1998/10/19	[thread overview]
Message-ID: <rz74st0zwcp.fsf@corton.inria.fr> (raw)
In-Reply-To: 707r55$qec$1@pulp.ucs.ualberta.ca


michal@gortel.phys.ualberta.ca (Michal Jaegermann) writes:
> [...chyear.c...]
> 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.

As far as I can remember, I originally had lstat(), but since utime()
seems to always follow links I switched to stat() for consistency.
So 'chyear' follows links.  That's a feature!  ;-)


> If you do not care about dates on links then 'touch' will work
> equally well without writing any C and compiling anything.

No way Jos�.  The whole point is to move bunches of files from the
future back to the past without messing up the order of their time
stamps relative to one another.  If you care about versioning,
makefiles or just want to know "which version of that project is the
most recent?", it's best not to throw away all timestamp information
with 'touch'.  IMHO.

Bye,
  Rob.



  reply	other threads:[~1998-10-19  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   ` Michal Jaegermann
1998-10-19  4:00     ` Robert Harley [this message]
1998-10-19  4:00       ` Michal Jaegermann
1998-10-16  4:00   ` Tan Wee Yeh
1998-10-16  4:00     ` Alex Rhomberg
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