From fc666cb0b9643e0ad279062fb8d933659e7de5a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Wed, 6 Apr 2016 09:42:16 +0200 Subject: [PATCH] Fixed bad test in fuse mount Apply a fix from the full fuse library --- libfuse-lite/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;