summaryrefslogtreecommitdiffstats
path: root/fuse/mount.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--fuse/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuse/mount.c b/fuse/mount.c
index eb0bb17d3..873685634 100644
--- a/fuse/mount.c
+++ b/fuse/mount.c
@@ -282,7 +282,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;