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
Signed-off-by: Stefan Lankes <slankes@eonerc.rwth-aachen.de>
This commit is contained in:
parent
ef01dd009d
commit
52ddf9ca4f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue