From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2457b115760b955da8e1e96de8434eea@plan9.bell-labs.com> From: jmk@plan9.bell-labs.com To: 9fans@cse.psu.edu Subject: Re: [9fans] create() and mtime In-Reply-To: <9f2ff8a7c20beeea97858128bc424469@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Wed, 22 Oct 2003 14:56:41 -0400 Topicbox-Message-UUID: 7805fe0e-eacc-11e9-9e20-41e7f4b1d025 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