diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-07-31 17:46:17 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-07-31 17:46:17 +0000 |
commit | 8833066b122427710a9e14a888ce6cfa862332d3 (patch) | |
tree | 29591019d695919417b3698618d6a342e97381d6 /nscd | |
parent | fedca46896bdb702cb988837a0c2c5447e72ba2b (diff) | |
download | glibc-8833066b122427710a9e14a888ce6cfa862332d3.tar.gz glibc-8833066b122427710a9e14a888ce6cfa862332d3.tar.xz glibc-8833066b122427710a9e14a888ce6cfa862332d3.zip |
Updated to fedora-glibc-20070731T1624 cvs/fedora-glibc-2_6_90-1
Diffstat (limited to 'nscd')
-rw-r--r-- | nscd/aicache.c | 27 | ||||
-rw-r--r-- | nscd/cache.c | 5 | ||||
-rw-r--r-- | nscd/connections.c | 5 | ||||
-rw-r--r-- | nscd/dbg_log.c | 5 | ||||
-rw-r--r-- | nscd/gai.c | 5 | ||||
-rw-r--r-- | nscd/getgrgid_r.c | 5 | ||||
-rw-r--r-- | nscd/getgrnam_r.c | 5 | ||||
-rw-r--r-- | nscd/gethstbyad_r.c | 5 | ||||
-rw-r--r-- | nscd/gethstbynm2_r.c | 5 | ||||
-rw-r--r-- | nscd/getpwnam_r.c | 5 | ||||
-rw-r--r-- | nscd/getpwuid_r.c | 5 | ||||
-rw-r--r-- | nscd/getsrvbynm_r.c | 5 | ||||
-rw-r--r-- | nscd/getsrvbypt_r.c | 5 | ||||
-rw-r--r-- | nscd/grpcache.c | 5 | ||||
-rw-r--r-- | nscd/hstcache.c | 5 | ||||
-rw-r--r-- | nscd/initgrcache.c | 5 | ||||
-rw-r--r-- | nscd/mem.c | 5 | ||||
-rw-r--r-- | nscd/nscd.c | 5 | ||||
-rw-r--r-- | nscd/nscd_conf.c | 5 | ||||
-rw-r--r-- | nscd/nscd_helper.c | 6 | ||||
-rw-r--r-- | nscd/nscd_setup_thread.c | 5 | ||||
-rw-r--r-- | nscd/pwdcache.c | 5 | ||||
-rw-r--r-- | nscd/selinux.c | 2 | ||||
-rw-r--r-- | nscd/servicescache.c | 5 |
24 files changed, 77 insertions, 63 deletions
diff --git a/nscd/aicache.c b/nscd/aicache.c index 4640b4df94..0dc892bc74 100644 --- a/nscd/aicache.c +++ b/nscd/aicache.c @@ -1,11 +1,12 @@ /* Cache handling for host lookup. - Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. + Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2004. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -78,15 +79,6 @@ addhstaiX (struct database_dyn *db, int fd, request_header *req, dbg_log (_("Reloading \"%s\" in hosts cache!"), (char *) key); } -#if 0 - uid_t oldeuid = 0; - if (db->secure) - { - oldeuid = geteuid (); - pthread_seteuid_np (uid); - } -#endif - static service_user *hosts_database; service_user *nip = NULL; int no_more; @@ -263,8 +255,10 @@ addhstaiX (struct database_dyn *db, int fd, request_header *req, total = sizeof (*dataset) + naddrs + addrslen + canonlen; - /* Now we can allocate the data structure. */ - if (he == NULL) + /* Now we can allocate the data structure. If the TTL + of the entry is reported as zero do not cache the + entry at all. */ + if (ttl != 0 && he == NULL) { dataset = (struct dataset *) mempool_alloc (db, total @@ -453,11 +447,6 @@ addhstaiX (struct database_dyn *db, int fd, request_header *req, out: _res.options = old_res_options; -#if 0 - if (db->secure) - pthread_seteuid_np (oldeuid); -#endif - if (dataset != NULL && !alloca_used) { /* If necessary, we also propagate the data to disk. */ diff --git a/nscd/cache.c b/nscd/cache.c index 73e7902cad..56198f6b6e 100644 --- a/nscd/cache.c +++ b/nscd/cache.c @@ -3,8 +3,9 @@ Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/connections.c b/nscd/connections.c index c3f9d0e7df..32a1077819 100644 --- a/nscd/connections.c +++ b/nscd/connections.c @@ -4,8 +4,9 @@ Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/dbg_log.c b/nscd/dbg_log.c index d64afc7e8d..5e192c97dd 100644 --- a/nscd/dbg_log.c +++ b/nscd/dbg_log.c @@ -3,8 +3,9 @@ Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1998. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/gai.c b/nscd/gai.c index 1233590407..23964b7fd7 100644 --- a/nscd/gai.c +++ b/nscd/gai.c @@ -3,8 +3,9 @@ Contributed by Ulrich Drepper <drepper@cygnus.com>, 2004. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/getgrgid_r.c b/nscd/getgrgid_r.c index 037509d8aa..297ebe7691 100644 --- a/nscd/getgrgid_r.c +++ b/nscd/getgrgid_r.c @@ -3,8 +3,9 @@ Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/getgrnam_r.c b/nscd/getgrnam_r.c index 8fc74dcbaf..55e69d0e03 100644 --- a/nscd/getgrnam_r.c +++ b/nscd/getgrnam_r.c @@ -3,8 +3,9 @@ Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/gethstbyad_r.c b/nscd/gethstbyad_r.c index 4c02492101..e0cd82c32b 100644 --- a/nscd/gethstbyad_r.c +++ b/nscd/gethstbyad_r.c @@ -3,8 +3,9 @@ Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/gethstbynm2_r.c b/nscd/gethstbynm2_r.c index 416b5ceafa..abe992cc1c 100644 --- a/nscd/gethstbynm2_r.c +++ b/nscd/gethstbynm2_r.c @@ -3,8 +3,9 @@ Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/getpwnam_r.c b/nscd/getpwnam_r.c index c92209a0cf..a1f7c3c872 100644 --- a/nscd/getpwnam_r.c +++ b/nscd/getpwnam_r.c @@ -3,8 +3,9 @@ Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/getpwuid_r.c b/nscd/getpwuid_r.c index f68951511e..501c605b5b 100644 --- a/nscd/getpwuid_r.c +++ b/nscd/getpwuid_r.c @@ -3,8 +3,9 @@ Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/getsrvbynm_r.c b/nscd/getsrvbynm_r.c index fb60f4802d..ebd344ac59 100644 --- a/nscd/getsrvbynm_r.c +++ b/nscd/getsrvbynm_r.c @@ -3,8 +3,9 @@ Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/getsrvbypt_r.c b/nscd/getsrvbypt_r.c index fd5b11bc3d..69abee15d9 100644 --- a/nscd/getsrvbypt_r.c +++ b/nscd/getsrvbypt_r.c @@ -3,8 +3,9 @@ Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/grpcache.c b/nscd/grpcache.c index 3852e8ca7f..9cb6105f3c 100644 --- a/nscd/grpcache.c +++ b/nscd/grpcache.c @@ -4,8 +4,9 @@ Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/hstcache.c b/nscd/hstcache.c index ad2e323eac..3c9a17fee8 100644 --- a/nscd/hstcache.c +++ b/nscd/hstcache.c @@ -4,8 +4,9 @@ Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/initgrcache.c b/nscd/initgrcache.c index f1f859c552..bb4ac37efc 100644 --- a/nscd/initgrcache.c +++ b/nscd/initgrcache.c @@ -4,8 +4,9 @@ Contributed by Ulrich Drepper <drepper@redhat.com>, 2004. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/mem.c b/nscd/mem.c index 5206c5af38..d7c59244aa 100644 --- a/nscd/mem.c +++ b/nscd/mem.c @@ -4,8 +4,9 @@ Contributed by Ulrich Drepper <drepper@redhat.com>, 2004. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/nscd.c b/nscd/nscd.c index 3257e05689..cd4dabfdb1 100644 --- a/nscd/nscd.c +++ b/nscd/nscd.c @@ -3,8 +3,9 @@ Contributed by Thorsten Kukuk <kukuk@suse.de>, 1998. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/nscd_conf.c b/nscd/nscd_conf.c index e724c6bd59..0d5a5f2d8c 100644 --- a/nscd/nscd_conf.c +++ b/nscd/nscd_conf.c @@ -3,8 +3,9 @@ Contributed by Thorsten Kukuk <kukuk@suse.de>, 1998. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/nscd_helper.c b/nscd/nscd_helper.c index 79644a4da1..50146a093e 100644 --- a/nscd/nscd_helper.c +++ b/nscd/nscd_helper.c @@ -265,7 +265,11 @@ get_mapping (request_type type, const char *key, if (wait_on_socket (sock) <= 0) goto out_close2; - if (__builtin_expect (TEMP_FAILURE_RETRY (__recvmsg (sock, &msg, 0)) +# ifndef MSG_CMSG_CLOEXEC +# define MSG_CMSG_CLOEXEC 0 +# endif + if (__builtin_expect (TEMP_FAILURE_RETRY (__recvmsg (sock, &msg, + MSG_CMSG_CLOEXEC)) != keylen, 0)) goto out_close2; diff --git a/nscd/nscd_setup_thread.c b/nscd/nscd_setup_thread.c index 32bfe07000..c17fbd5638 100644 --- a/nscd/nscd_setup_thread.c +++ b/nscd/nscd_setup_thread.c @@ -4,8 +4,9 @@ Contributed by Ulrich Drepper <drepper@redhat.com>, 2004. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/pwdcache.c b/nscd/pwdcache.c index ab41bcc0d5..51ea113476 100644 --- a/nscd/pwdcache.c +++ b/nscd/pwdcache.c @@ -4,8 +4,9 @@ Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of diff --git a/nscd/selinux.c b/nscd/selinux.c index f2dbceeea1..6cbcbea19c 100644 --- a/nscd/selinux.c +++ b/nscd/selinux.c @@ -180,7 +180,7 @@ preserve_capabilities (void) } cap_t tmp_caps = cap_init (); - cap_t new_caps; + cap_t new_caps = NULL; if (tmp_caps != NULL) new_caps = cap_init (); diff --git a/nscd/servicescache.c b/nscd/servicescache.c index 8c3a9516ba..89e107bae7 100644 --- a/nscd/servicescache.c +++ b/nscd/servicescache.c @@ -4,8 +4,9 @@ Contributed by Ulrich Drepper <drepper@drepper.com>, 2007. This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. + it under the terms of the GNU General Public License as published + by the Free Software Foundation; version 2 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |