diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | lib/mount.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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; |