--- freeradius-1.0.5-ALTERADO/src/main/conffile.c	2005-10-16 15:43:31.000000000 -0200
+++ freeradius-1.0.5/src/main/conffile.c	2004-04-06 15:00:57.000000000 -0300
@@ -31,9 +31,6 @@
 
 #include <stdlib.h>
 #include <string.h>
-#include <libgen.h>
-#include <dirent.h>
-#include <fnmatch.h>
 
 #ifdef HAVE_NETINET_IN_H
 #	include <netinet/in.h>
@@ -659,11 +656,8 @@
 		 *      I really really really hate this file.  -cparker
 		 */
 		if (strcasecmp(buf1, "$INCLUDE") == 0) {
-			char *temp, *file, *path;
-			CONF_SECTION      *is;
-			int n;
-			struct dirent **namelist;
 
+			CONF_SECTION      *is;
 
 			t2 = getword(&ptr, buf2, sizeof(buf2));
 
@@ -675,54 +669,10 @@
 
 			DEBUG2( "Config:   including file: %s", value );
 
-			temp = (char *)strdup(value);
-
-			file = basename(temp);
-			path = dirname(temp);
-			
-			DEBUG2("$INCLUDE: file:%s, path:%s", file, path);
-
-			n = scandir(path, &namelist, 0, alphasort);
-
-        		if (n < 0) {
-				DEBUG2("Config: Scandir %s Erro", path);
-         		} else {
-				char *buffer;
-           			while(n--) {
-                			if ( fnmatch(file, namelist[n]->d_name, 0) == 0 ) {
-						DEBUG2("Config:(!) include %s", namelist[n]->d_name);
-						//
-							
-						buffer = malloc( strlen(path) + strlen(namelist[n]->d_name)+4);
-						sprintf(buffer,"%s/%s", path, namelist[n]->d_name);
-						DEBUG2("Buffer %s", buffer);
-
-						
-
-			                     	if ((is = conf_read(cf, *lineno, buffer, parent)) == NULL) {
-                              			 cf_section_free(&cs);
-						 //return NULL;
-                        		      } else {
-							DEBUG2("Abriu: %s", buffer);
-						}
-						free( buffer );
-
-					}
-     					free(namelist[n]);
-				}
-               			free(namelist);
-           		}
-			free(temp);
-
-
-/*
 			if ((is = conf_read(cf, *lineno, value, parent)) == NULL) {
 				cf_section_free(&cs);
 				return NULL;
 			}
-*/
-
-
 
 			/*
 			 *	Add the included conf to our CONF_SECTION
