Fixed bad test in fuse mount

Apply a fix from the full fuse library
This commit is contained in:
Jean-Pierre André 2016-04-06 09:42:16 +02:00
parent 366c20e8a2
commit fc666cb0b9

View File

@ -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;