Bug 4946

Summary: Wrong check in nscd's handle_request()
Product: glibc Reporter: Petr Baudis <pasky>
Component: nscdAssignee: Ulrich Drepper <drepper.fsp>
Status: RESOLVED FIXED    
Severity: normal CC: glibc-bugs
Priority: P2 Flags: fweimer: security-
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Attachments: Proposed fix

Description Petr Baudis 2007-08-21 21:07:43 UTC
handle_request()'s check for sendfileall() is wrong. db->mmap_used must be
always true, otherwise  assert (db->wr_fd != -1)  fails. And even if
cached->notfound, why not use sendfileall()?
Comment 1 Petr Baudis 2007-08-21 21:08:18 UTC
Created attachment 1973 [details]
Proposed fix
Comment 2 Ulrich Drepper 2007-08-22 03:40:48 UTC
Applied.  With a different ChangeLog message, though.