diff options
author | dholland <dholland@NetBSD.org> | 2008-02-03 20:41:53 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2008-02-03 20:41:53 +0000 |
commit | 55b806c4924f962dafc951ce61d022e5123a636d (patch) | |
tree | 18d6c217357897a5f673b88c09093c9c1cf5b7e6 /larn/scores.c | |
parent | ccda27626c3c6cd1976164c34418d0fd2f920b62 (diff) | |
download | bsdgames-darwin-55b806c4924f962dafc951ce61d022e5123a636d.tar.gz bsdgames-darwin-55b806c4924f962dafc951ce61d022e5123a636d.tar.zst bsdgames-darwin-55b806c4924f962dafc951ce61d022e5123a636d.zip |
Don't create files mode 666 in /var. (The code in question is not enabled
by default, though.)
Diffstat (limited to 'larn/scores.c')
-rw-r--r-- | larn/scores.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <sys/cdefs.h> #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 <sys/types.h> #include <sys/times.h> @@ -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 */ |