Skip to content

Commit

Permalink
Fix nasa#655, use 3 argument form of open
Browse files Browse the repository at this point in the history
  • Loading branch information
jphickey committed Nov 17, 2020
1 parent 7c1b59a commit c98192b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/portable/os-impl-posix-files.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ int32 OS_FileChmod_Impl(const char *local_path, uint32 access)
int fd;

/* Open file to avoid filename race potential */
fd = open(local_path, O_RDONLY);
fd = open(local_path, O_RDONLY, 0);
if (fd < 0)
{
return OS_ERROR;
Expand Down

0 comments on commit c98192b

Please sign in to comment.