NetBSD Problem Report #42009

From apb@cequrux.com  Mon Sep  7 20:50:54 2009
Return-Path: <apb@cequrux.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id E6F8B63BCFB
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  7 Sep 2009 20:50:54 +0000 (UTC)
Message-Id: <20090907205043.3DDA0100AA4C@apb-laptoy.apb.alt.za>
Date: Mon,  7 Sep 2009 20:50:43 +0000 (UTC)
From: apb@cequrux.com
Reply-To: apb@cequrux.com
To: gnats-bugs@gnats.NetBSD.org
Subject: /rescue/tetris should not use high scores file
X-Send-Pr-Version: 3.95

>Number:         42009
>Category:       bin
>Synopsis:       /rescue/tetris should not use high scores file
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    dholland
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 07 20:55:00 +0000 2009
>Closed-Date:    Tue Sep 08 13:49:23 +0000 2009
>Last-Modified:  Tue Sep 08 13:49:23 +0000 2009
>Originator:     Alan Barrett
>Release:        NetBSD 5.99.16
>Organization:
Not much
>Environment:
System: NetBSD 
Architecture: i386
Machine: i386
>Description:
	/rescue/tetris tries to use /var/games/tetris.scores.  If the system
        is in a bad state, possibly with corrupted file systems, it
        would be a bad idea to write anywhere without a deliberate
        decision by the sysadmin.  Simply running a game does not count
        as as deliberate decision to write to the file system.
>How-To-Repeat:
	/rescue/tetris
	press 'q' to quit.
	see this message:
	tetris: Cannot open /var/games/tetris.scores for read/write:
		Permission denied
>Fix:
	Disable the high scores feature in the rescue version of tetris.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: bin-bug-people->dholland
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Mon, 07 Sep 2009 23:33:37 +0000
Responsible-Changed-Why:
take.


From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/42009 CVS commit: src/games/tetris
Date: Tue, 8 Sep 2009 13:38:01 +0000

 Module Name:	src
 Committed By:	dholland
 Date:		Tue Sep  8 13:38:01 UTC 2009

 Modified Files:
 	src/games/tetris: scores.c

 Log Message:
 Disable writing scores when built for /rescue. PR 42009


 To generate a diff of this commit:
 cvs rdiff -u -r1.17 -r1.18 src/games/tetris/scores.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 08 Sep 2009 13:49:23 +0000
State-Changed-Why:
fixed, thanks


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.