olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1125306.patch

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