diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -8,6 +8,8 @@ | |||
| 8 | 8 | ||
| 9 | #include "snac.h" | 9 | #include "snac.h" |
| 10 | 10 | ||
| 11 | #include <sys/stat.h> | ||
| 12 | |||
| 11 | int usage(void) | 13 | int 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 | ||