From 55b806c4924f962dafc951ce61d022e5123a636d Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 3 Feb 2008 20:41:53 +0000 Subject: Don't create files mode 666 in /var. (The code in question is not enabled by default, though.) --- larn/scores.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'larn') diff --git a/larn/scores.c b/larn/scores.c index 35224fba..ae289f1b 100644 --- a/larn/scores.c +++ b/larn/scores.c @@ -1,4 +1,4 @@ -/* $NetBSD: scores.c,v 1.16 2008/02/03 03:45:55 dholland Exp $ */ +/* $NetBSD: scores.c,v 1.17 2008/02/03 20:41:53 dholland Exp $ */ /* * scores.c Larn is copyrighted 1986 by Noah Morgan. @@ -26,7 +26,7 @@ */ #include #ifndef lint -__RCSID("$NetBSD: scores.c,v 1.16 2008/02/03 03:45:55 dholland Exp $"); +__RCSID("$NetBSD: scores.c,v 1.17 2008/02/03 20:41:53 dholland Exp $"); #endif /* not lint */ #include #include @@ -817,7 +817,7 @@ getplid(nam) lflush(); /* flush any pending I/O */ snprintf(name, sizeof(name), "%s\n", nam);/* append a \n to name */ if (lopen(playerids) < 0) { /* no file, make it */ - if ((fd7 = creat(playerids, 0666)) < 0) + if ((fd7 = creat(playerids, 0664)) < 0) return (-1); /* can't make it */ close(fd7); goto addone; /* now append new playerid record to file */ -- cgit v1.2.3-56-ge451