$NetBSD: patch-af,v 1.4 2007/05/18 22:20:10 adrianp Exp $ --- src/dynamic-plugins/sf_dynamic_plugins.c.orig 2007-03-14 16:58:10.000000000 +0000 +++ src/dynamic-plugins/sf_dynamic_plugins.c @@ -210,8 +210,7 @@ void LoadAllLibs(char *path, LoadLibrary dirEntry = readdir(directory); while (dirEntry) { - if (dirEntry->d_reclen && - !fnmatch(EXT, dirEntry->d_name, FNM_PATHNAME | FNM_PERIOD)) + if (!fnmatch(EXT, dirEntry->d_name, FNM_PATHNAME | FNM_PERIOD)) { SnortSnprintf(path_buf, PATH_MAX, "%s%s%s", path, "/", dirEntry->d_name); loadFunc(path_buf, 1);