diff options
author | Achim Gottinger <achim@gentoo.org> | 2001-05-08 07:31:10 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2001-05-08 07:31:10 +0000 |
commit | 048f61b7e53d00a00b4ff2cd9ba814f78fcc619a (patch) | |
tree | d6c8e9ecefeeb62ab5a2d2adaf1449081ddc5481 /sys-libs | |
parent | Added backup of libpthread and exit if we try to install under X (diff) | |
download | gentoo-2-048f61b7e53d00a00b4ff2cd9ba814f78fcc619a.tar.gz gentoo-2-048f61b7e53d00a00b4ff2cd9ba814f78fcc619a.tar.bz2 gentoo-2-048f61b7e53d00a00b4ff2cd9ba814f78fcc619a.zip |
A required patch
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/glibc/files/glibc-2.2.3-libnss.diff | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sys-libs/glibc/files/glibc-2.2.3-libnss.diff b/sys-libs/glibc/files/glibc-2.2.3-libnss.diff new file mode 100644 index 000000000000..98865a69247e --- /dev/null +++ b/sys-libs/glibc/files/glibc-2.2.3-libnss.diff @@ -0,0 +1,51 @@ +RCS file: /cvs/glibc/libc/nis/nss-nis.h,v +retrieving revision 1.2 +retrieving revision 1.3 +diff -u -r1.2 -r1.3 +--- nis/nss-nis.h 2001/04/26 13:43:15 1.2 ++++ nis/nss-nis.h 2001/04/28 02:17:52 1.3 +@@ -31,9 +31,9 @@ + static inline enum nss_status + yperr2nss (int errval) + { +- if ((unsigned int) errval > __yperr2nss_count) ++ if ((unsigned int) errval >= __yperr2nss_count) + return NSS_STATUS_UNAVAIL; +- return __yperr2nss_tab[errval]; ++ return __yperr2nss_tab[(unsigned int) errval]; + } + + #endif /* nis/nss-nis.h */ +Index: nis/nss-nisplus.h +=================================================================== +RCS file: /cvs/glibc/libc/nis/nss-nisplus.h,v +retrieving revision 1.4 +retrieving revision 1.5 +diff -u -r1.4 -r1.5 +--- nis/nss-nisplus.h 2001/04/26 13:52:40 1.4 ++++ nis/nss-nisplus.h 2001/04/28 02:19:00 1.5 +@@ -32,9 +32,9 @@ + static inline enum nss_status + niserr2nss (int errval) + { +- if ((unsigned int) errval > __niserr2nss_count) ++ if ((unsigned int) errval >= __niserr2nss_count) + return NSS_STATUS_UNAVAIL; +- return __niserr2nss_tab[errval]; ++ return __niserr2nss_tab[(unsigned int) errval]; + } + + #endif /* nis/nss-nisplus.h */ +Index: nis/Makefile +=================================================================== +--- nis/Makefile~ Tue May 8 04:08:19 2001 ++++ nis/Makefile Tue May 8 04:13:17 2001 +@@ -55,7 +55,7 @@ + nis_clone_res + + libnss_compat-routines := $(addprefix compat-,grp pwd spwd initgroups) \ +- nisplus-parser nss-nis ++ nisplus-parser nss-nis nss-nisplus + libnss_compat-inhibit-o = $(filter-out .os,$(object-suffixes)) + + libnss_nis-routines := $(addprefix nis-,$(databases)) nis-initgroups \ |