5de29b
commit a11892631d92f594c690d0d50a642b0d1aba58b8
5de29b
Author: Ondřej Bílka <neleai@seznam.cz>
5de29b
Date:   Wed May 7 14:08:57 2014 +0200
5de29b
5de29b
    Fix typo in nscd/selinux.c
5de29b
12745e
diff --git glibc-2.17-c758a686/nscd/selinux.c glibc-2.17-c758a686/nscd/selinux.c
5de29b
index 9a8a5a8..eaed6dd 100644
12745e
--- glibc-2.17-c758a686/nscd/selinux.c
12745e
+++ glibc-2.17-c758a686/nscd/selinux.c
5de29b
@@ -372,7 +372,7 @@ nscd_request_avc_has_perm (int fd, request_type req)
5de29b
   /* Get the security class for nscd.  If this fails we will likely be
5de29b
      unable to do anything unless avc_deny_unknown is 0.  */
5de29b
-  if ((sc_nscd = string_to_security_class ("nscd")) == 0
5de29b
-      && avc_deny_unknown == 1)
5de29b
+  sc_nscd = string_to_security_class ("nscd");
5de29b
+  if (sc_nscd == 0 && avc_deny_unknown == 1)
5de29b
     dbg_log (_("Error getting security class for nscd."));
5de29b
 
5de29b
   /* Convert permission to AVC bits.  */