From owner-freebsd-audit Sun Jun 17 7:28:55 2001 Delivered-To: freebsd-audit@freebsd.org Received: from prism.flugsvamp.com (cb58709-a.mdsn1.wi.home.com [24.17.241.9]) by hub.freebsd.org (Postfix) with ESMTP id 1D45D37B401; Sun, 17 Jun 2001 07:28:51 -0700 (PDT) (envelope-from jlemon@flugsvamp.com) Received: (from jlemon@localhost) by prism.flugsvamp.com (8.11.0/8.11.0) id f5HESH045428; Sun, 17 Jun 2001 09:28:17 -0500 (CDT) (envelope-from jlemon) Date: Sun, 17 Jun 2001 09:28:17 -0500 From: Jonathan Lemon To: Assar Westerlund Cc: freebsd-audit@freebsd.org, jlemon@freebsd.org Subject: Re: GLOB_LIMIT vs GLOB_MAXPATH Message-ID: <20010617092817.M68883@prism.flugsvamp.com> References: <5ld783cvnq.fsf@assaris.sics.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <5ld783cvnq.fsf@assaris.sics.se> Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Jun 17, 2001 at 11:17:45AM +0200, Assar Westerlund wrote: > The GLOB_MAXPATH flag to glob(3) does the same thing as the GLOB_LIMIT > one in NetBSD and OpenBSD (except for the default limit). Since this > is mostly used by ftpd and has been in the tree for a short amount of > time, I think it makes sense to keep it compatible with the other > BSDs. Enclosed is a patch that does this. Comments? I don't really care about the name. However, I'm not sure if they are the same thing; GLOB_MAXPATH limits the number of returned paths that glob(3) will return. Does GLOB_LIMIT do the same, or does it limit the number of *bytes* that are returned? If GLOB_LIMIT is a count of pathnames, then I have no objections to the change, otherwise things should stay the same. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message