🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.games.hack
Article #577

bug fix for 1.0.2 uptodate routine...

#577
From: Jeff Myers
Date: Sun, 12 May 1985 19:03
12 lines
1044 bytes
A previous fix for version 1.0.1 in the file hack.stat.c can be applied
to version 1.0.2 hack.unix.c.  The diff follows for using mtime rather than
ctime in checking if a saved level or game is out of date.

Just lost a saved game due to this; arg!!!!!  Somebody apparently tried to
hard link to the game, modifying the ctime, but NOT the mtime.

diff hack.unix.c.old hack.unix.c
108c108
< 	if(buf.st_ctime < hbuf.st_ctime) {
---
> 	if(buf.st_mtime < hbuf.st_mtime) {
Technical Details
Message-ID: <1067@uwmacc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!uwvax!uwmacc!myers

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site uwmacc.UUCP
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!uwvax!uwmacc!myers
From: myers@uwmacc.UUCP (Jeff Myers)
Newsgroups: net.games.hack,net.sources.bugs
Subject: bug fix for 1.0.2 uptodate routine...
Message-ID: <1067@uwmacc.UUCP>
Date: Sun, 12-May-85 15:03:27 EDT
Article-I.D.: uwmacc.1067
Posted: Sun May 12 15:03:27 1985
Date-Received: Tue, 14-May-85 08:25:53 EDT
Distribution: net
Organization: UWisconsin-Madison Academic Comp Center
Lines: 12