diff --git a/libfuse-lite/mount.c b/libfuse-lite/mount.c index 70454f4e..263c20a6 100644 --- a/libfuse-lite/mount.c +++ b/libfuse-lite/mount.c @@ -350,7 +350,7 @@ static int receive_fd(int fd) } cmsg = CMSG_FIRSTHDR(&msg); - if (!cmsg->cmsg_type == SCM_RIGHTS) { + if (cmsg->cmsg_type != SCM_RIGHTS) { fprintf(stderr, "got control message of unknown type %d\n", cmsg->cmsg_type); return -1;