summaryrefslogtreecommitdiffstats
path: root/usr.bin/msgs
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-11-19 16:55:50 +0000
committerache <ache@FreeBSD.org>1995-11-19 16:55:50 +0000
commitbd69bb91205946d21ad215bcab3787d4efd7f3fb (patch)
treee1e9e972725a4ee7e309d575070b7bc15d595eea /usr.bin/msgs
parent616cf86edb78ca11fe9f91c44970ce6123fa09af (diff)
downloadFreeBSD-src-bd69bb91205946d21ad215bcab3787d4efd7f3fb.zip
FreeBSD-src-bd69bb91205946d21ad215bcab3787d4efd7f3fb.tar.gz
Default file creation mask was 666 (allow othres write anything
to msgs directory), change it to 644
Diffstat (limited to 'usr.bin/msgs')
-rw-r--r--usr.bin/msgs/msgs.c4
1 files changed, 2 insertions, 2 deletions
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 <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);
OpenPOWER on IntegriCloud