contrib/helper.c: make temporary file readable for everyone
This commit is contained in:
parent
6685cfaeba
commit
721306c55d
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue