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

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