summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index fbb16b4..4f9722b 100644
--- a/main.c
+++ b/main.c
@@ -8,6 +8,8 @@
8 8
9#include "snac.h" 9#include "snac.h"
10 10
11#include <sys/stat.h>
12
11int usage(void) 13int usage(void)
12{ 14{
13 printf("snac " VERSION " - A simple, minimalistic ActivityPub instance\n"); 15 printf("snac " VERSION " - A simple, minimalistic ActivityPub instance\n");
@@ -55,6 +57,9 @@ int main(int argc, char *argv[])
55 int argi = 1; 57 int argi = 1;
56 snac snac; 58 snac snac;
57 59
60 /* ensure group has write access */
61 umask(0007);
62
58 if ((cmd = GET_ARGV()) == NULL) 63 if ((cmd = GET_ARGV()) == NULL)
59 return usage(); 64 return usage();
60 65