1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

tools/proxy: add mandatory mode for open() when used with O_CREAT or O_TMPFILE

This commit is contained in:
Daniel Krebs 2016-02-19 22:36:50 +01:00
parent ef01dd009d
commit 1b3dd19c38

View file

@ -86,7 +86,7 @@ static int init_env(void)
// register function to delete temporary files
atexit(fini_env);
fd = open(fname, O_CREAT|O_RDWR);
fd = open(fname, O_CREAT|O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO);
if (fd < 0) {
perror("open");
exit(1);