From: jmk@plan9.bell-labs.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] create() and mtime
Date: Wed, 22 Oct 2003 14:56:41 -0400 [thread overview]
Message-ID: <2457b115760b955da8e1e96de8434eea@plan9.bell-labs.com> (raw)
In-Reply-To: <9f2ff8a7c20beeea97858128bc424469@google.com>
On Wed Oct 22 14:08:39 EDT 2003, r@geekmail.cc wrote:
> > It looks like a create of an existing file is not updating mtime. As a result
> > news prints old news because the mtime of $home/lib/newstime gets fixed to
> > the actual creation (not truncation) time.
>
> i just noticed this myself. you need to write to a file to get its mtime updated.
> i believe this is a mistake; the manual says mtime is time of change of content,
> not time of write.
>
> i would change your news program to create and write a byte.
>
> -rob
i would fix the bug. new version of /sys/src/cmd/fossil/file.c on sources.
--jim
next prev parent reply other threads:[~2003-10-22 18:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-22 17:46 Fco.J.Ballesteros
2003-10-22 18:06 ` rob pike, esq.
2003-10-22 18:56 ` jmk [this message]
2003-10-23 10:38 ` Fco.J.Ballesteros
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2457b115760b955da8e1e96de8434eea@plan9.bell-labs.com \
--to=jmk@plan9.bell-labs.com \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).