Skip to content

Commit

Permalink
Merge pull request #44 from chewi/open-mode
Browse files Browse the repository at this point in the history
Fix missing third mode argument on open() with O_CREAT
  • Loading branch information
spronovo committed Apr 22, 2021
2 parents b09ea9a + 864f81d commit 86e7325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libweston/backend-rdp/rdputil.c
Expand Up @@ -105,7 +105,7 @@ rdp_allocate_shared_memory(struct rdp_backend *b, struct weston_rdp_shared_memor
strcat(path, "/");
strcat(path, shared_memory->name);

fd = open(path, O_CREAT | O_RDWR);
fd = open(path, O_CREAT | O_RDWR, 00600);
if (fd < 0) {
weston_log("%s: Failed to open \"%s\" with error: %s\n",
__func__, path, strerror(errno));
Expand Down

0 comments on commit 86e7325

Please sign in to comment.