summaryrefslogtreecommitdiffstats
path: root/backgammon
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1999-07-28 02:07:39 +0000
committerhubertf <hubertf@NetBSD.org>1999-07-28 02:07:39 +0000
commit1430fa634c93a746fc61f514f1f986bb312c54c0 (patch)
tree4500f85a35845a5f98891d9d83ab9a91765ba8fc /backgammon
parent537a50f2e1a1c5acddaaf889c326e1e8f2993074 (diff)
downloadbsdgames-darwin-1430fa634c93a746fc61f514f1f986bb312c54c0.tar.gz
bsdgames-darwin-1430fa634c93a746fc61f514f1f986bb312c54c0.tar.zst
bsdgames-darwin-1430fa634c93a746fc61f514f1f986bb312c54c0.zip
This patch fixes a remaining relic of the backgammon(6) "execute
saved game to continue playing" problem described in bin/6077. Patch contributed by Joseph Myers <jsm28@cam.ac.uk> in PR 8092.
Diffstat (limited to 'backgammon')
-rw-r--r--backgammon/common_source/save.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/backgammon/common_source/save.c b/backgammon/common_source/save.c
index 107dd8d2..2f4a8101 100644
--- a/backgammon/common_source/save.c
+++ b/backgammon/common_source/save.c
@@ -1,4 +1,4 @@
-/* $NetBSD: save.c,v 1.8 1999/02/10 12:29:48 hubertf Exp $ */
+/* $NetBSD: save.c,v 1.9 1999/07/28 02:07:39 hubertf Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)save.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: save.c,v 1.8 1999/02/10 12:29:48 hubertf Exp $");
+__RCSID("$NetBSD: save.c,v 1.9 1999/07/28 02:07:39 hubertf Exp $");
#endif
#endif /* not lint */
@@ -111,7 +111,7 @@ save(n)
close(fdesc);
if (yorn(0)) {
unlink(fname);
- fdesc = creat(fname, 0700);
+ fdesc = creat(fname, 0600);
break;
} else {
cflag = 1;