commit f436b8c
Michael Forney
·
2019-08-25 22:25:35 +0000 UTC
parent c2e7337
launch: Fix operator precedence when checking open flags
1 files changed,
+1,
-1
+1,
-1
1@@ -201,7 +201,7 @@ handle_socket_data(int socket)
2 fprintf(stderr, "path is not NULL terminated\n");
3 goto fail;
4 }
5- if (request.flags & (O_ACCMODE|O_NONBLOCK|O_CLOEXEC) != request.flags) {
6+ if ((request.flags & (O_ACCMODE|O_NONBLOCK|O_CLOEXEC)) != request.flags) {
7 fprintf(stderr, "invalid open flags\n");
8 goto fail;
9 }