$NetBSD: patch-aa,v 1.4 2010/02/20 08:25:52 obache Exp $ --- engine.c.orig 2002-09-23 17:51:11.000000000 +0000 +++ engine.c @@ -1004,7 +1004,7 @@ void process_directory(char *filename, i } #else if((dir=opendir(filename))==NULL) { - fprintf(stderr,"There was a problem opening the directory.\n"); + perror(filename); return; } while((dirdata=readdir(dir))!=NULL) { @@ -1019,6 +1019,7 @@ void process_directory(char *filename, i dirdata->d_name); process_file(buf,forcelang); } + closedir(dir); #endif }