[glibc] - Fix typo in __nss_getent (#806403).
Jeffrey Law
law at fedoraproject.org
Fri Mar 23 20:03:26 UTC 2012
commit ccb21a9b27f37e33c7ab1f1ee782604b40538228
Author: Jeff Law <law at redhat.com>
Date: Fri Mar 23 14:03:01 2012 -0600
- Fix typo in __nss_getent (#806403).
glibc-rh806403.patch | 13 +++++++++++++
glibc.spec | 8 +++++++-
2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/glibc-rh806403.patch b/glibc-rh806403.patch
new file mode 100644
index 0000000..8f852f9
--- /dev/null
+++ b/glibc-rh806403.patch
@@ -0,0 +1,13 @@
+diff --git a/nss/getnssent.c b/nss/getnssent.c
+index 014b376..bbcfeb8 100644
+--- a/nss/getnssent.c
++++ b/nss/getnssent.c
+@@ -32,7 +32,7 @@ __nss_getent (getent_r_function func, void **resbuf, char **buffer,
+ *buffer = malloc (*buffer_size);
+ }
+
+- while (buffer != NULL
++ while (*buffer != NULL
+ && func (resbuf, *buffer, *buffer_size, &result, h_errnop) == ERANGE
+ && (h_errnop == NULL || *h_errnop == NETDB_INTERNAL))
+ {
diff --git a/glibc.spec b/glibc.spec
index 0a0eef8..5c23263 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -28,7 +28,7 @@
Summary: The GNU libc libraries
Name: glibc
Version: %{glibcversion}
-Release: 28%{?dist}
+Release: 29%{?dist}
# GPLv2+ is used in a bunch of programs, LGPLv2+ is used for libraries.
# Things that are linked directly into dynamically linked programs
# and shared libraries (e.g. crt files, lib*_nonshared.a) have an additional
@@ -121,6 +121,8 @@ Patch43 : %{name}-rh801650-2.patch
Patch44 : %{name}-stap-libm.patch
# Waiting on upstream
Patch45 : %{name}-rh803286.patch
+# Sent upstream, waiting on review
+Patch46 : %{name}-rh806403.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -385,6 +387,7 @@ rm -rf %{glibcportsdir}
%patch43 -p1
%patch44 -p1
%patch45 -p1
+%patch46 -p1
# A lot of programs still misuse memcpy when they have to use
# memmove. The memcpy implementation below is not tolerant at
@@ -1237,6 +1240,9 @@ rm -f *.filelist*
%endif
%changelog
+* Fri Mar 23 2012 Jeff Law <law at redhat.com> - 2.15-29
+ - Fix typo in __nss_getent (#806403).
+
* Wed Mar 13 2012 Jeff Law <law at redhat.com> - 2.15-28
- Add doi_IN, sat_IN and mni_IN to SUPPORTED locals (#803286)
- Add stap probes in slowpow and slowexp.
More information about the scm-commits
mailing list