* nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
[glibc.git] / ChangeLog
blobd7e33323fac328f64f087832d74881be27dda4c4
1 2006-05-18  Jakub Jelinek  <jakub@redhat.com>
3         * nis/nss_compat/compat-pwd.c (internal_setpwent): If nss_set*ent
4         returned NSS_STATUS_UNAVAIL, still return NSS_STATUS_SUCCESS.
5         * nis/nss_compat/compat-spwd.c (internal_setspent): Likewise.
6         * nis/nss_compat/compat-grp.c (internal_setgrent): Likewise.
8         * nis/nss_compat/compat-initgroups.c (nss_setgrent, nss_endgrent):
9         Removed.
10         (init_nss_interface): Remove initialization of these variables.
12 2006-05-18  Ulrich Drepper  <drepper@redhat.com>
14         * nis/nis_call.c (rec_dirsearch): Little optimization: pull
15         nis_free_directory forward to avoid duplication.
17 2006-05-17  Ulrich Drepper  <drepper@redhat.com>
19         * nis/nis_call.c (rec_dirsearch): Handle __nis_finddirectory and
20         rec_dirsearch returning NULL.
21         (first_shoot): Handle __nis_finddirectory returning NULL.
22         (__nisfind_server): Fix leak when rec_dirsearch returns NULL.
24         * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,
25         IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
27 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
29         * sunrpc/key_call.c (getkeyserv_handle): Call auth_destroy if
30         pid changed.
32 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
34         * include/rpc/pmap_prot.h: Mark all functions as hidden.
36         * nscd/nscd_initgroups.c: Mark __gr_map_handle as hidden.
37         * nscd/nscd_getgr_r.c: Likewise.
39         * include/rpc/pmap_rmt.h: Mark all functions as hidden.
41         * nscd/nscd_getai.c (__hst_map_handle): Mark as hidden.
42         * nscd/nscd_gethst_r.c (__hst_map_handle): Likewise.
44         * stdlib/longlong.h (__clz_tab): Mark as hidden.
46         * iconv/gconv_int.h: Mark __gconv_lock as hidden.
48         * include/rpc/key_prot.h: Mark all _internal functions as hidden.
50         * include/rpc/auth.h: Mark xdr_des_block_internal and
51         xdr_opaque_auth_internal as hidden.
53         * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as
54         hidden.
56         * include/rpc/xdr.h: Mark all _internal functions as hidden.
58         * misc/getusershell.c (okshells): Don't use static initializers,
59         do it dynamically.
61         * stdlib/fmtmsg.c (keywords): Change type of len element to
62         uint32_t to not waste space on 64bit machines.
64         * locale/setlocale.c: Change _nl_category_names into a string.
65         Add new _nl_category_name_idxs.  Change all users.
66         * locale/localeinfo.h: Adjust declaration of _nl_category_names.
67         Declare _nl_category_name_idxs.
68         * locale/findlocale.c: Adjust for _nl_category_names change.
69         * locale/loadlocale.c: Likewise.
70         * locale/newlocale.c: Likewise.
71         * intl/dcigettext.c: Likewise.
73         * iconv/gconv_conf.c (add_alias): Move actual alias handling to...
74         (add_alias2): ...here.  New function.
75         (__gconv_read_conf): Simplify builtin alias handling.
76         (builtin_aliases): Convert to string to avoid relocations.
77         * iconv/gconv_builtin.h: Add comment about correct formatting.
79 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
81         * resolv/res_debug.c (loc_ntoa): Make error const.
83 2006-05-14  Andreas Schwab  <schwab@suse.de>
85         * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH.
87 2006-05-12  Jakub Jelinek  <jakub@redhat.com>
89         * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h.
90         (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than
91         sizeof (cpu_set_t).
93 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
95         * resolv/res_debug.c (loc_ntoa): Define error as array, not pointer.
97         * include/arpa/nameser.h: Declare _ns_flagdata as hidden.
99         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_master.
100         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_master.
102         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypbind_resp.
103         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypbind_resp.
105         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_cback_data.
106         * include/rpcsvc/nis_callback.h: Add libnsl_hidden_proto for
107         xdr_cback_data.
109         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypupdate_args.
110         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
111         xdr_ypupdate_args.
113         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_order.
114         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_order.
116         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_maplist.
117         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_maplist.
119         * nis/nis_xdr.c: Add libnsl_hidden_def for xdr_obj_p.
120         * include/rpcsvc/nis_callback.h: New file.
122         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypresp_val.
123         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypresp_val.
125         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
126         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
128         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypmaplist.
129         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypmaplist.
131         * nis/yp_xdr.c: Add libnsl_hidden_def for xdr_ypreq_nokey.
132         * include/rpcsvc/yp.h: Add libnsl_hidden_proto for xdr_ypreq_nokey.
134         * nis/ypupdate_xdr.c: Add libnsl_hidden_def for xdr_ypdelete_args.
135         * include/rpcsvc/ypupd.h: Add libnsl_hidden_proto for
136         xdr_ypdelete_args.
138         * nis/nis_xdr.h: Mark all functions as hidden.  Remove
139         __BEGIN_DECLS and __END_DECLS, the header is not installed.
141         * nis/nis_error.c: Remove table of strings.  Use position
142         independent mechanism.
143         * nis/nis_error.h: New file.
145 2006-05-11  Jakub Jelinek  <jakub@redhat.com>
147         * locale/programs/ld-time.c (time_finish): If wide era name or
148         format aren't provided, set both wname and wformat to L"".
150 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
152         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only store
153         results if the call was succesful.
155         * nis/nss-nis.h: Mark __yperr2nss_tab and __yperr2nss_count as hidden.
157         * nis/nss-nisplus.h: Mark __niserr2nss_tab and __niserr2nss_count
158         as hidden.
160 2006-05-10  Jakub Jelinek  <jakub@redhat.com>
162         * misc/sys/queue.h: Remove uses of all QUEUEDEBUG_* macros.
164 2006-05-10  Ulrich Drepper  <drepper@redhat.com>
166         * posix/wordexp.c (parse_glob): No need to check ifs for NULL, the
167         caller makes sure this is not the case.
168         (wordexp): Simplify ifs_white creation.  [Coverity CID 231]
170 2006-05-09  Ulrich Drepper  <drepper@redhat.com>
172         * posix/wordexp.c: Remove numerous NULL pointer tests before FREE
173         calls.
175         * io/ftw.c (open_dir_stream): Return right away if REALLOC fails.
176         [Coverity CID 229, 230]
178         * argp/argp-help.c (hol_entry_help): Handle STATE==NULL in ARG and
179         DGETTEXT calls.
180         (hol_help): Likewise.  [Coverity CID 226, 227]
182         * string/argz-replace.c (__argz_replace): Unconditionally call
183         free on SRC.  [Coverity CID 225]
185         * nis/nis_creategroup.c (nis_creategroup): No need to duplicate
186         the return value of __nis_default_owner and __nis_default_group,
187         it has been especially allocated.  [Coverity CID 224]
189         * nis/nis_defaults.c (searchXYX): New functions.  Used by both
190         searchgroup and searchowner.  Significantly simplified.
191         (__nis_default_owner): Remove duplication.  Do not locally copy the
192         string before duplicating it.
193         (__nis_default_group): Likewise.
195         * nis/nis_lookup.c (nis_lookup): After calling nis_free_directory,
196         we must clear the variable before calling __nisfind_server.
198         * nis/nis_lookup.c (nis_lookup): Always free memory allocated with
199         nis_getnames.  [Coverity CID 223]
201         * locale/programs/locfile.c (locfile_read): Use alloca instead of
202         xmalloc to allocate local repertoire name.  [Coverity CID 222]
204         * iconv/iconv_charmap.c (use_to_charmap): No need to dynamically
205         allocate memory for the input to add_bytes.  [Coverity CID 221]
207         * posix/wordexp.c (w_addword): Free word if realloc fails and it
208         was allocated here.  [Coverity CID 219, 220]
210         * posix/getconf.c (print_all): Free confstr data after printing.
211         [Coverity CID 218]
213         * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if
214         list allocation fails.  [Coverity CID 215]
216         * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition.
217         [Coverity CID 213]
219         * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if
220         string is NULL.  [Coverity CID 212]
221         * argp/Makefile: Add rules to build and run bug-argp1.
222         * argp/bug-argp1.c: New file.
224         * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find
225         end of string.
226         * stdlib/canonicalize.c (__realpath): Likewise.
228         * locale/programs/ld-time.c (time_finish): Don't dereference NULL
229         pointer.  [Coverity CID 206]
231         * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map
232         in statically linked code.
233         * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in
234         statically built code, be prepared to have no link map.
235         [Coverity CID 205]
237         * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in
238         dgettext calls. [Coverity CID 204]
240         * argp/argp-help.c (struct uparams): Remove valid member.  Change
241         the one user.
242         (uparam_names): Reduce size.  Avoid relative relocations.
243         Moved to read-only segment.
244         (fill_in_uparams): Update for new layout.
246         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be
247         assumed to always be != NULL. [Coverity CID 202]
249         * argp/argp-help.c (hol_entry_help): Remove some dead code
250         [Coverity CID 200].
252         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize
253         away a few more unconditional yperr2nss calls.
254         (_nss_nis_getservbyname_r): Likewise.
256 2006-05-06  Ulrich Drepper  <drepper@redhat.com>
258         * sysdeps/generic/ldsodefs.h: Remove support for non-core
259         architectures.
261         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure
262         that unused memory passed to sendto is nevertheless initialized.
264         [BZ #2499]
265         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Avoid
266         possibly unaligned memory accesses.
268         * include/arpa/nameser.h: Also optimize NS_PUT16 and NS_PUT32.
269         * resolv/res_mkquery.c: Use NS_PUT16 and NS_PUT32 instead of __putshort
270         and __putlong respectively.  Correct buffer overflow check for
271         NS_NOTIFY_OP.
273         * resolv/res_send.c (send_vc): Use ns_put16 instead of putshort.
275         * resolv/res_send.c (res_queriesmatch): Fix typo in comment.
276         (send_dg): Rewrite error handling to be more compact and avoid
277         double recomputation of timeouts.  Pass MSG_NOSIGNAL to send.
279         * include/arpa/nameser.h: Add optimizations for NS_GET16 and NS_GET32.
281         * resolv/res_send.c (res_nameinquery): Use NS_GET16 directly
282         instead of ns_get16.
283         (res_queriesmatch): Likewise.  Minor optimization.
285         [BZ #2499]
286         * resolv/res_query.c (__libc_res_nquery): If answerp != NULL,
287         __libc_res_nsend might reallocate the buffer for the answer.  In
288         this case we have to reload the HP pointer.
290 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
292         * stdio-common/vfscanf.c (memory_error): Remove definition.  Add
293         some branch prediction hints.
295         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.
296         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
297         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
298         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
299         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
300         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
301         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
302         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
304 2006-05-05  Martin Schwidefsky  <schwidefsky@de.ibm.com>
306         * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocation
307         by a GOT relocation to make Scrt1.o position independent.
308         * sysdeps/s390/s390-64/elf/start.S: Likewise.
310         * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for
311         six system call parameters.
312         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
314 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
316         * sunrpc/svcauth_des.c (cache_init): Use calloc instead of
317         malloc&bzero.
319         * sunrpc/svc_udp.c (BZERO): Remove definition.
320         (CALLOC): Define.
321         (svc_enablecache): Use CALLOC instead of ALLOC&BZERO.
323         * sunrpc/des_impl.c: Remove ALT_ECB support.  We never used it.
324         (des_SPtrans): Use uint32_t type.
325         (des_skb): Likewise.
327         * sunrpc/xdr_ref.c (xdr_reference): Use calloc instead of malloc&bzero.
329 2006-05-05  Jakub Jelinek  <jakub@redhat.com>
331         [BZ #2509]
332         * stdio-common/tst-printf.sh: Adjust for tst-printf.c change even
333         on 32-bit arches.
335 2006-05-05  Ulrich Drepper  <drepper@redhat.com>
337         * locale/programs/ld-address.c (address_finish): Fix one more
338         place where the iso639 array might be accessed beyond the limits.
340 2006-05-04  Ulrich Drepper  <drepper@redhat.com>
342         * nis/nis_table.c (nis_list): Avoid clearing res twice before
343         filling it for the first time.
345         * nis/nis_table.c (get_tablepath): Renamed from __get_tablepath.
346         Adjust all callers.
347         Free res object content before returning.
349         * sunrpc/xdr_array.c (xdr_array): Use calloc instead of malloc&bzero.
351         * sunrpc/key_call.c (__rpc_thread_key_cleanup): Also free
352         client->cl_auth.
354         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Don't skip entire
355         cleanup for initial thread, just the free call on TVP.
357         * nscd/gai.c (__getline): Define.
360 See ChangeLog.16 for earlier changes.