From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9767 invoked by alias); 13 Jan 2008 15:21:36 -0000 Received: (qmail 9652 invoked by uid 48); 13 Jan 2008 15:20:53 -0000 Date: Sun, 13 Jan 2008 15:21:00 -0000 From: "steve at fisharerojo dot org" To: glibc-bugs@sources.redhat.com Message-ID: <20080113152052.5605.steve@fisharerojo.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/5605] New: dirfd() SEGVs when passed NULL X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00055.txt.bz2 The following example program SEGVs in dirfd() in libc. Based on the manpage, it should be returning -1. #include #include #include int main() { int fd = dirfd(NULL); } -- Summary: dirfd() SEGVs when passed NULL Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: drepper at redhat dot com ReportedBy: steve at fisharerojo dot org CC: glibc-bugs at sources dot redhat dot com http://sourceware.org/bugzilla/show_bug.cgi?id=5605 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.