Skip to content

Commit

Permalink
missing arg to creat
Browse files Browse the repository at this point in the history
  • Loading branch information
comotion committed Mar 2, 2010
1 parent 4f3a5bf commit ce1dff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ int initSecurity(int* max_mem_lock, int* memory_safe, int* ptrace_safe,
/* check that stderr, stdin and stdout are opened */
/* NOTE: no file must be opened before this test! */
/* Flawfinder: ignore */
canary = open("/dev/null", O_CREAT);
canary = open("/dev/null", O_CREAT, 0700);
if ((canary >= 0) && (canary <= 2))
{
fprintf(stderr, "%s\n",
Expand Down

0 comments on commit ce1dff2

Please sign in to comment.