swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit f436b8c5691fd77068617aa2beaeb984093db3b4
parent c2e73373c244e48ad5569b376b510e9f9f0080eb
Author: Michael Forney <mforney@mforney.org>
Date:   Sun, 25 Aug 2019 15:25:35 -0700

launch: Fix operator precedence when checking open flags

Diffstat:
Mlaunch/launch.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/launch/launch.c b/launch/launch.c @@ -201,7 +201,7 @@ handle_socket_data(int socket) fprintf(stderr, "path is not NULL terminated\n"); goto fail; } - if (request.flags & (O_ACCMODE|O_NONBLOCK|O_CLOEXEC) != request.flags) { + if ((request.flags & (O_ACCMODE|O_NONBLOCK|O_CLOEXEC)) != request.flags) { fprintf(stderr, "invalid open flags\n"); goto fail; }