about summary refs log tree commit diff
path: root/nscd/initgrcache.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-01-06 19:15:13 +0000
committerUlrich Drepper <drepper@redhat.com>2006-01-06 19:15:13 +0000
commit74158740ea6bf9acbb63fa7744e56a0aacc5ca9e (patch)
treea19d48866a0dd067e8a7dcd76558b126ea101e3d /nscd/initgrcache.c
parenteb4f4081008ae9a6ef1e3fc109c272c89d2e03c1 (diff)
downloadglibc-74158740ea6bf9acbb63fa7744e56a0aacc5ca9e.tar.gz
glibc-74158740ea6bf9acbb63fa7744e56a0aacc5ca9e.tar.xz
glibc-74158740ea6bf9acbb63fa7744e56a0aacc5ca9e.zip
[BZ #2114]
	* ncsd/aicache.c: Don't use sendfile for records on the stack.
	* nscd/grpcache.c: Likewise.
	* nscd/hstcache.c: Likewise.
	* nscd/initgrcache.c: Likewise.
	* nscd/pwdcache.c: Likewise.
	Patch by dmueller@suse.com.
Diffstat (limited to 'nscd/initgrcache.c')
-rw-r--r--nscd/initgrcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nscd/initgrcache.c b/nscd/initgrcache.c
index 423dbbe4d3..f2ff03a0b1 100644
--- a/nscd/initgrcache.c
+++ b/nscd/initgrcache.c
@@ -1,5 +1,5 @@
 /* Cache handling for host lookup.
-   Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2004.
 
@@ -347,7 +347,7 @@ addinitgroupsX (struct database_dyn *db, int fd, request_header *req,
 	  assert (fd != -1);
 
 #ifdef HAVE_SENDFILE
-	  if (__builtin_expect (db->mmap_used, 1))
+	  if (__builtin_expect (db->mmap_used, 1) && !alloca_used)
 	    {
 	      assert (db->wr_fd != -1);
 	      assert ((char *) &dataset->resp > (char *) db->data);