Default file creation mask was 666 (allow othres write anything

to msgs directory), change it to 644
This commit is contained in:
Andrey A. Chernov 1995-11-19 16:55:50 +00:00
parent 648dce7dd1
commit 8b761b33c1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12390

View File

@ -84,7 +84,7 @@ static char sccsid[] = "@(#)msgs.c 8.1 (Berkeley) 6/6/93";
#include <unistd.h>
#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);