From 033a775459e4ba3aa6b9fc0fbacb2aa56b1218b2 Mon Sep 17 00:00:00 2001
From: GrayJack <gr41.j4ck@gmail.com>
Date: Wed, 27 Nov 2019 13:29:15 -0300
Subject: [PATCH] Fix the lastlogx PartialEq impl

---
 src/unix/bsd/netbsdlike/netbsd/mod.rs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs
index 69c1efbb..91ecd62a 100644
--- a/src/unix/bsd/netbsdlike/netbsd/mod.rs
+++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs
@@ -481,8 +481,12 @@ cfg_if! {
             fn eq(&self, other: &lastlogx) -> bool {
                 self.ll_tv == other.ll_tv
                     && self.ll_line == other.ll_line
-                    && self.ll_host == other.ll_host
                     && self.ll_ss == other.ll_ss
+                    && self
+                    .ll_host
+                    .iter()
+                    .zip(other.ll_host.iter())
+                    .all(|(a,b)| a == b)
             }
         }
 
-- 
GitLab