From owner-cvs-all Thu Mar 15 11:21:42 2001 Delivered-To: cvs-all@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id E35BE37B71D; Thu, 15 Mar 2001 11:21:37 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id OAA48111; Thu, 15 Mar 2001 14:21:28 -0500 (EST) (envelope-from wollman) Date: Thu, 15 Mar 2001 14:21:28 -0500 (EST) From: Garrett Wollman Message-Id: <200103151921.OAA48111@khavrinen.lcs.mit.edu> To: Jonathan Lemon Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen glob.c In-Reply-To: <200103151850.f2FIoXl53931@freefall.freebsd.org> References: <200103151850.f2FIoXl53931@freefall.freebsd.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < said: > Limit the number of paths that glob can return to MAX_GLOBENTRIES, which > is currently set to 10000. I don't see any language in the current POSIX draft that permits such behavior. I think it's clearly intended that glob() return all paths which match the given specification. The only possible error relevant to this case is: GLOB_NOSPACE An attempt to allocate memory failed. But I think returning GLOB_NOSPACE for the case of ``you tried to glob too many files'' is a huge stretch. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message