diff options
author | default <nobody@localhost> | 2023-02-07 09:01:57 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-02-07 09:01:57 +0100 |
commit | fabe6a500629eb0810e535bb41d49b8f493056e9 (patch) | |
tree | 19341d07dcb6c67404f9815862c9d84c647aa19e /main.c | |
parent | b8b0b96cceb0b93963f17dd1ff7c018ae21dafdc (diff) |
Tweaked user and group permissions for new files and dirs.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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(); |