Re: installing hack(6) overwrites /var/games/hackdir/record file!
On Wed, Aug 11, 1999 at 09:54:48AM +0100, Dominic Mitchell wrote: > On Wed, Aug 11, 1999 at 04:24:55AM +1000, Andy Farkas wrote: > > Perhaps this should be a PR... > > > > Seeing as how we are recently being amused by fortune(6) quotes, I thought > > I'd mention an acronymn that hasn't been used recently: POLA > > > > Can anyone explain why every time I upgrade world, my hard earned 'record' > > file whilst playing hack(6) gets overwritten by /dev/null, and also all > > the user 'bones' and 'save' files rm'd? > > Blimey! I wondered where all my rogue(6) scores were going. This is an > excellent idea. I'll submit a PR, with your diffs and some for rogue. OK, if you'd like to have a look at PR bin/13068, and maybe somebody could commit if it's agreed to be a good thing. -- Dom Mitchell -- Palmer & Harvey McLane -- Unix Systems Administrator "Finally, when replying to messages only quote the parts of the message your will be discussing or that are relevant. Quoting whole messages and adding two lines at the top is not good etiquette." -- Elias Levy -- ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: installing hack(6) overwrites /var/games/hackdir/record file!
On Wed, 11 Aug 1999, Bob Bishop wrote: > >> Can anyone explain why every time I upgrade world, my hard earned 'record' > >> file whilst playing hack(6) gets overwritten by /dev/null, and also all > >> the user 'bones' and 'save' files rm'd? > > > >Blimey! I wondered where all my rogue(6) scores were going. This is an > >excellent idea. I'll submit a PR, with your diffs and some for rogue. > > I think you'll find that hack(6) itself silently removes save and bones > files that are older than the binary, a precaution because it relies on > data layout in the file. This is a PITA but nontrivial to fix. Yes, hack will invalidate any save or bones file that is older than the mtime of (hard coded!) "/usr/games/hide/hack". And it tells you about it. But I can live with that. Its the trashing of the 'record' file that I'm most concerned about. If this file was untouched during upgrades, I'd be happy. The other point is that the data layout hasn't changed since the game was first brought into the tree (circa Sep '94). > > -- > Bob Bishop+44 118 977 4017 > [EMAIL PROTECTED] fax +44 118 989 4254 (0800-1800 UK) > -- :{ [EMAIL PROTECTED] Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: installing hack(6) overwrites /var/games/hackdir/record file!
Hi, At 09:54 11/08/99 +0100, Dominic Mitchell wrote: >On Wed, Aug 11, 1999 at 04:24:55AM +1000, Andy Farkas wrote: >> Perhaps this should be a PR... >> >> Seeing as how we are recently being amused by fortune(6) quotes, I thought >> I'd mention an acronymn that hasn't been used recently: POLA >> >> Can anyone explain why every time I upgrade world, my hard earned 'record' >> file whilst playing hack(6) gets overwritten by /dev/null, and also all >> the user 'bones' and 'save' files rm'd? > >Blimey! I wondered where all my rogue(6) scores were going. This is an >excellent idea. I'll submit a PR, with your diffs and some for rogue. I think you'll find that hack(6) itself silently removes save and bones files that are older than the binary, a precaution because it relies on data layout in the file. This is a PITA but nontrivial to fix. -- Bob Bishop +44 118 977 4017 [EMAIL PROTECTED]fax +44 118 989 4254 (0800-1800 UK) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: installing hack(6) overwrites /var/games/hackdir/record file!
On Wed, Aug 11, 1999 at 04:24:55AM +1000, Andy Farkas wrote: > Perhaps this should be a PR... > > Seeing as how we are recently being amused by fortune(6) quotes, I thought > I'd mention an acronymn that hasn't been used recently: POLA > > Can anyone explain why every time I upgrade world, my hard earned 'record' > file whilst playing hack(6) gets overwritten by /dev/null, and also all > the user 'bones' and 'save' files rm'd? Blimey! I wondered where all my rogue(6) scores were going. This is an excellent idea. I'll submit a PR, with your diffs and some for rogue. -- Dom Mitchell -- Palmer & Harvey McLane -- Unix Systems Administrator "Finally, when replying to messages only quote the parts of the message your will be discussing or that are relevant. Quoting whole messages and adding two lines at the top is not good etiquette." -- Elias Levy -- ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
installing hack(6) overwrites /var/games/hackdir/record file!
Perhaps this should be a PR... Seeing as how we are recently being amused by fortune(6) quotes, I thought I'd mention an acronymn that hasn't been used recently: POLA Can anyone explain why every time I upgrade world, my hard earned 'record' file whilst playing hack(6) gets overwritten by /dev/null, and also all the user 'bones' and 'save' files rm'd? If the interface to these files changes, surely the game should recognise it? I propose the following patch to src/games/hack: $ diff -u Makefile.orig Makefile --- Makefile.orig Wed Aug 11 04:16:06 1999 +++ MakefileWed Aug 11 04:16:20 1999 @@ -31,14 +31,14 @@ beforeinstall: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} /dev/null \ ${DESTDIR}/var/games/hackdir/perm +.if !exists(${DESTDIR}/var/games/hackdir/record) ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 460 /dev/null \ ${DESTDIR}/var/games/hackdir/record +.endif ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 440 ${.CURDIR}/rumors \ ${DESTDIR}/var/games/hackdir/rumors ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \ ${.CURDIR}/help ${.CURDIR}/hh ${.CURDIR}/data \ ${DESTDIR}/var/games/hackdir - rm -f ${DESTDIR}/var/games/hackdir/bones* \ - ${DESTDIR}/var/games/hackdir/save/* .include -- :{ [EMAIL PROTECTED] Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message