From roelof@nisser.com  Tue Apr 17 18:03:32 2001
Return-Path: <roelof@nisser.com>
Received: from nisser.com (c0039.upc-c.chello.nl [212.187.0.39])
	by hub.freebsd.org (Postfix) with ESMTP id 046DF37B422
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Apr 2001 18:03:31 -0700 (PDT)
	(envelope-from roelof@nisser.com)
Received: (from roelof@localhost)
	by nisser.com (8.9.3/8.9.2) id DAA32869;
	Wed, 18 Apr 2001 03:03:29 +0200 (CEST)
	(envelope-from roelof)
Message-Id: <200104180103.DAA32869@nisser.com>
Date: Wed, 18 Apr 2001 03:03:29 +0200 (CEST)
From: roelof@nisser.com
Reply-To: roelof@nisser.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: FreeBSD Security Advisory FreeBSD-SA-01:33.ftpd-glob
X-Send-Pr-Version: 3.2

>Number:         26659
>Category:       kern
>Synopsis:       `GLOB_LIMIT' undeclared
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 17 18:10:02 PDT 2001
>Closed-Date:    Wed Apr 18 00:29:11 PDT 2001
>Last-Modified:  Wed Apr 18 00:31:46 PDT 2001
>Originator:     Roelof Osinga
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
eBOA/Nisser
>Environment:

	

FreeBSD nisser.com 3.4-STABLE FreeBSD 3.4-STABLE #16: Sun Feb 13 14:51:41
CET 2000     toor@nisser.com:/usr/src/sys/compile/FORSETI  i386

>Description:

...
/usr/src/lib/libc/../libc/gen/glob.c: In function `globextend':
/usr/src/lib/libc/../libc/gen/glob.c:689: `GLOB_LIMIT' undeclared (first use
this function)
*** Error code 1

>How-To-Repeat:

	
repeat steps as in advisory on like environment

>Fix:
	
	
define GLOB_LIMIT? Just a guess, mind
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: roam 
State-Changed-When: Wed Apr 18 00:29:11 PDT 2001 
State-Changed-Why:  
This has been discussed on the -security list, a new advisory shall be 
issued shortly.  In the meantime, try applying this patch too: 

=================================================================== 
RCS file: /home/ncvs/src/include/glob.h,v 
retrieving revision 1.3 
retrieving revision 1.3.6.1 
diff -u -p -r1.3 -r1.3.6.1 
--- src/include/glob.h	1998/02/25 02:15:59	1.3 
+++ src/include/glob.h	2001/03/21 14:33:56	1.3.6.1 
@@ -34,6 +34,7 @@ 
* SUCH DAMAGE. 
* 
*	@(#)glob.h	8.1 (Berkeley) 6/2/93 
+ * $FreeBSD: /home/ncvs/src/include/glob.h,v 1.3.6.1 2001/03/21 14:33:56 jlemon Exp $ 
*/ 

#ifndef _GLOB_H_ 
@@ -76,9 +77,11 @@ typedef struct { 
#define	GLOB_NOMAGIC	0x0200	/* GLOB_NOCHECK without magic chars (csh). */ 
#define	GLOB_QUOTE	0x0400	/* Quote special chars with . */ 
#define	GLOB_TILDE	0x0800	/* Expand tilde names from the passwd file. */ 
+#define	GLOB_MAXPATH	0x1000	/* limit number of returned paths */ 

#define	GLOB_NOSPACE	(-1)	/* Malloc call failed. */ 
#define	GLOB_ABEND	(-2)	/* Unignored error. */ 
+#define	GLOB_LIMIT	(-3)	/* Path limit was hit. */ 

__BEGIN_DECLS 
int	glob __P((const char *, int, int (*)(const char *, int), glob_t *)); 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26659 
>Unformatted:
