Blame SOURCES/0005-chroot-fix-bogus-assignments-in-assertions.patch

2de76d
From 4b48927e8e2c721d103018b4ce39a164b6c2898f Mon Sep 17 00:00:00 2001
2de76d
From: Michal Sekletar <msekleta@redhat.com>
2de76d
Date: Wed, 24 Oct 2018 15:38:48 +0000
2de76d
Subject: [PATCH] chroot: fix bogus assignments in assertions
2de76d
2de76d
---
2de76d
 avahi-daemon/chroot.c | 4 ++--
2de76d
 1 file changed, 2 insertions(+), 2 deletions(-)
2de76d
2de76d
diff --git a/avahi-daemon/chroot.c b/avahi-daemon/chroot.c
2de76d
index ccd56be..871b3b3 100644
2de76d
--- a/avahi-daemon/chroot.c
2de76d
+++ b/avahi-daemon/chroot.c
2de76d
@@ -188,8 +188,8 @@ static int recv_fd(int fd) {
2de76d
             return -1;
2de76d
         }
2de76d
 
2de76d
-        assert(h->cmsg_len = CMSG_LEN(sizeof(int)));
2de76d
-        assert(h->cmsg_level = SOL_SOCKET);
2de76d
+        assert(h->cmsg_len == CMSG_LEN(sizeof(int)));
2de76d
+        assert(h->cmsg_level == SOL_SOCKET);
2de76d
         assert(h->cmsg_type == SCM_RIGHTS);
2de76d
 
2de76d
         return *((int*)CMSG_DATA(h));
2de76d
-- 
2de76d
2.17.2
2de76d