contrib/helper.c: make temporary file readable for everyone

This commit is contained in:
illiliti
2021-05-18 19:30:07 +03:00
parent 6685cfaeba
commit 721306c55d

View File

@@ -15,6 +15,7 @@
#include <unistd.h>
#include <stdlib.h>
#include <limits.h>
#include <sys/stat.h>
int main(int argc, char **argv)
{
@@ -58,6 +59,7 @@ int main(int argc, char **argv)
}
}
fchmod(fd, 0444);
close(fd);
return 0;
}