From bd69bb91205946d21ad215bcab3787d4efd7f3fb Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 19 Nov 1995 16:55:50 +0000 Subject: Default file creation mask was 666 (allow othres write anything to msgs directory), change it to 644 --- usr.bin/msgs/msgs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/msgs') diff --git a/usr.bin/msgs/msgs.c b/usr.bin/msgs/msgs.c index fd7d230..6f2a3a4 100644 --- a/usr.bin/msgs/msgs.c +++ b/usr.bin/msgs/msgs.c @@ -84,7 +84,7 @@ static char sccsid[] = "@(#)msgs.c 8.1 (Berkeley) 6/6/93"; #include #include "pathnames.h" -#define CMODE 0666 /* bounds file creation mode */ +#define CMODE 0644 /* bounds file creation mode */ #define NO 0 #define YES 1 #define SUPERUSER 0 /* superuser uid */ @@ -330,7 +330,7 @@ int argc; char *argv[]; perror(fname); exit(errno); } - chmod(fname, 0644); + chmod(fname, CMODE); fprintf(bounds, "%d %d\n", firstmsg, nextmsg); fclose(bounds); -- cgit v1.1