From owner-freebsd-audit Sun Jun 17 17:58: 7 2001 Delivered-To: freebsd-audit@freebsd.org Received: from assaris.sics.se (dhcp-221-128.pdc.kth.se [130.237.221.128]) by hub.freebsd.org (Postfix) with ESMTP id 4F9A137B405; Sun, 17 Jun 2001 17:58:01 -0700 (PDT) (envelope-from assar@assaris.sics.se) Received: (from assar@localhost) by assaris.sics.se (8.9.3/8.9.3) id CAA38434; Mon, 18 Jun 2001 02:58:00 +0200 (CEST) (envelope-from assar) From: Assar Westerlund To: Jonathan Lemon Cc: freebsd-audit@freebsd.org, jlemon@freebsd.org Subject: Re: GLOB_LIMIT vs GLOB_MAXPATH References: <5ld783cvnq.fsf@assaris.sics.se> <20010617092817.M68883@prism.flugsvamp.com> Date: 18 Jun 2001 02:57:57 +0200 In-Reply-To: Jonathan Lemon's message of "Sun, 17 Jun 2001 09:28:17 -0500" Message-ID: <5llmmqtxii.fsf@assaris.sics.se> Lines: 16 User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Jonathan Lemon writes: > 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? GLOB_LIMIT in NetBSD and OpenBSD limits the number of matches or returned paths, so I think they are the same thing. The difference is that in NetBSD/OpenBSD the limit is fixed and hence there is no way (as in FreeBSD) to set the limit at `n' matches. Hence my patch setting limit to a default value if `gl_matchc == 0'. The other issue is if we should leave GLOB_MAXPATH as an alias. After all, this functionality was included in 4.3. /assar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message