Subject: bin/350: robots(6) can't read/write /var/games/robots_roll
To: None <gnats-admin>
From: jason downs <downsj@CSOS.ORST.EDU>
List: netbsd-bugs
Date: 07/20/1994 00:20:06
>Number:         350
>Category:       bin
>Synopsis:       robots(6) can't read/write /var/games/robots_roll
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 20 00:20:02 1994
>Originator:     jason downs
>Organization:
Computer Sciece Outreach Services, Oregon State University
>Release:        NetBSD 1.0-ALPHA (current)
>Environment:
System: NetBSD nemesis 1.0-ALPHA NetBSD 1.0-ALPHA (NEMESIS) #4: Tue Jul 19 15:09:15 PDT 1994 downsj@nemesis:/tmp_mnt/jadzia/info/BSD/src/sys/arch/hp300/compile/NEMESIS hp300


>Description:
	robots(6) does not have permission to read/write to it's score
	file, /var/games/robots_roll.
>How-To-Repeat:
	Play a complete game of robots.
>Fix:
	1.) make /var/games/robots_roll world read/write.
			-or-
	2.) make /usr/games/robots set-gid to 'games', and make
	    /var/games/robots_roll read/writeable by group games.

	A patch to /usr/src/games/robots/Makefile that does 2.):

*** Makefile.orig	Wed Jul 20 00:09:58 1994
--- Makefile	Wed Jul 20 00:09:45 1994
***************
*** 8,17 ****
  MAN6=	robots.0
  DPADD=	${LIBCURSES} ${LIBTERM}
  LDADD=	-lcurses -ltermlib
  HIDEGAME=hidegame
  
  beforeinstall:
! 	install -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
  	    ${DESTDIR}/var/games/robots_roll
  
  .include <bsd.prog.mk>
--- 8,20 ----
  MAN6=	robots.0
  DPADD=	${LIBCURSES} ${LIBTERM}
  LDADD=	-lcurses -ltermlib
+ BINOWN=	games
+ BINGRP=	games
+ BINMODE=2555
  HIDEGAME=hidegame
  
  beforeinstall:
! 	install -c -o ${BINOWN} -g ${BINGRP} -m 660 /dev/null \
  	    ${DESTDIR}/var/games/robots_roll
  
  .include <bsd.prog.mk>
>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------