summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-02-07 09:01:57 +0100
committerdefault <nobody@localhost>2023-02-07 09:01:57 +0100
commitfabe6a500629eb0810e535bb41d49b8f493056e9 (patch)
tree19341d07dcb6c67404f9815862c9d84c647aa19e /main.c
parentb8b0b96cceb0b93963f17dd1ff7c018ae21dafdc (diff)
Tweaked user and group permissions for new files and dirs.
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 @@
#include "snac.h"
+#include <sys/stat.h>
+
int usage(void)
{
printf("snac " VERSION " - A simple, minimalistic ActivityPub instance\n");
@@ -55,6 +57,9 @@ int main(int argc, char *argv[])
int argi = 1;
snac snac;
+ /* ensure group has write access */
+ umask(0007);
+
if ((cmd = GET_ARGV()) == NULL)
return usage();