Subject: bin/8092: [PATCH] Backgammon executable save files relic
To: None <gnats-bugs@gnats.netbsd.org>
From: Joseph Myers <jsm28@cam.ac.uk>
List: netbsd-bugs
Date: 07/27/1999 11:14:23
>Number:         8092
>Category:       bin
>Synopsis:       [PATCH] Backgammon executable save files relic
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 27 10:20:02 1999
>Last-Modified:
>Originator:     Joseph S. Myers
>Organization:
Trinity College, University of Cambridge, UK
>Release:        NetBSD anoncvs of 1999-07-26
>Environment:
[
System: Linux decomino 2.2.10 #1 Mon Jun 14 07:48:53 UTC 1999 i686 unknown
Architecture: i686
]
>Description:

This patch fixes a remaining relic of the backgammon(6) problem
described in bin/6077.

>How-To-Repeat:

>Fix:

diff -ruN backgammon/common_source/save.c backgammon+/common_source/save.c
--- backgammon/common_source/save.c	Wed Feb 10 12:29:48 1999
+++ backgammon+/common_source/save.c	Tue Jul 27 15:59:00 1999
@@ -111,7 +111,7 @@
 			close(fdesc);
 			if (yorn(0)) {
 				unlink(fname);
-				fdesc = creat(fname, 0700);
+				fdesc = creat(fname, 0600);
 				break;
 			} else {
 				cflag = 1;
>Audit-Trail:
>Unformatted: