Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/3/84; site sesame.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!sdcsvax!dcdwest!ittvax!decvax!genrad!panda!talcott!sesame!rick From: rick@sesame.UUCP (Rick Richardson) Newsgroups: net.games.rogue Subject: Re: Copying saved games Message-ID: <164@sesame.UUCP> Date: Mon, 18-Mar-85 12:19:39 EST Article-I.D.: sesame.164 Posted: Mon Mar 18 12:19:39 1985 Date-Received: Fri, 22-Mar-85 23:46:27 EST References: <1091@reed.UUCP> <999@hound.UUCP> Organization: Free-Access Unix in Boston Lines: 27 > Has anyone wrote a program which will copy programs which preserve > the access and modification times of the source file? ... > > I am intent on figuring this out. I cannot afford to start at the > beginning of the game each time I slip deep in the dungeon. ... > Steve Pearse > ihnp4!hound!pearse As far as I remember, rogue stashes the time and the inode number in the encrypted save file. The time that is saved is compared to the 'ctime' of the saved file. It must be within 15 seconds. There is no system call that will let you change the ctime. You can only change the atime and the mtime. At one point, I wrote a program that would go into the inode using the raw disk device, and change anything you wanted. It was for repairing damage that Microsoft's crappy IPC's would do to our XENIX filesystem. You have to be root to do this. Unfortunately, it wasn't a user friendly program, and a friend tried to use it to do exactly what you want - change the ctime. He managed to use it on the wrong inode (somebodies home directory!) and clobbered it. Wasn't too bad though, cause we both hated this particular person anyhow! -- Rick Richardson, PC Research, Inc. {genrad|ihnp4|ima}!wjh12!talcott!sesame!{rick|pcrat!rick} {cbosgd|harvard}!talcott!sesame!{rick|pcrat!rick} rick%sesame@harvard.ARPA