From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24706 invoked by alias); 14 Jan 2008 03:13:49 -0000 Received: (qmail 24605 invoked by uid 48); 14 Jan 2008 03:13:05 -0000 Date: Mon, 14 Jan 2008 03:13:00 -0000 Message-ID: <20080114031305.24604.qmail@sourceware.org> From: "steve at fisharerojo dot org" To: glibc-bugs@sources.redhat.com In-Reply-To: <20080113152052.5605.steve@fisharerojo.org> References: <20080113152052.5605.steve@fisharerojo.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/5605] 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/msg00058.txt.bz2 ------- Additional Comments From steve at fisharerojo dot org 2008-01-14 03:13 ------- (In reply to comment #1) > The argument must be a pointer to a valid directory stream. ...and if it isn't libc should SEGV. That seems very illogical. It would seem to make much more sense to return -1 and set errno to EBADF. -- What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | 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.