From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] create() and mtime From: Fco.J.Ballesteros In-Reply-To: <2457b115760b955da8e1e96de8434eea@plan9.bell-labs.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-zesvpfyvjwwiayypgrwgolejsp" Date: Thu, 23 Oct 2003 12:38:01 +0200 Topicbox-Message-UUID: 78181404-eacc-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-zesvpfyvjwwiayypgrwgolejsp Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I was not sure of the correct behaviour, so I couldnt fix it. For me it was not clear if it was a feature or not. Thanks for the fix. --upas-zesvpfyvjwwiayypgrwgolejsp Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by aquamar; Wed Oct 22 20:57:45 MDT 2003 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 3384519A65; Wed, 22 Oct 2003 14:57:31 -0400 (EDT) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.30.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 894BC19A7C; Wed, 22 Oct 2003 14:57:16 -0400 (EDT) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id A47D419A6F; Wed, 22 Oct 2003 14:56:56 -0400 (EDT) Received: from plan9.cs.bell-labs.com (plan9.bell-labs.com [204.178.31.2]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id BB11F19A23 for <9fans@cse.psu.edu>; Wed, 22 Oct 2003 14:56:44 -0400 (EDT) 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 Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Wed, 22 Oct 2003 14:56:41 -0400 X-Spam-Status: No, hits=-1.2 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,NO_REAL_NAME,QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) 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 --upas-zesvpfyvjwwiayypgrwgolejsp--