aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--lib/mount.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4c0d87d..5b39f16 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2015-08-12 Miklos Szeredi <miklos@szeredi.hu>
+ * libfuse: fix warning mount.c:receive_fd(). Reported by Albert
+ Berger
+
* libfuse: added fuse_pkgversion() function to retrieve the full
version string, per autoconf. Patch by Christopher Harrison
diff --git a/lib/mount.c b/lib/mount.c
index 111b32b..de4ae74 100644
--- a/lib/mount.c
+++ b/lib/mount.c
@@ -281,7 +281,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;