2011-04-01 18:48:36 +02:00
|
|
|
$NetBSD: patch-af,v 1.5 2011/04/01 16:48:36 gdt Exp $
|
2007-02-20 18:29:36 +01:00
|
|
|
|
2011-04-01 18:48:36 +02:00
|
|
|
--- src/dynamic-plugins/sf_dynamic_plugins.c.orig 2009-08-10 21:26:41.000000000 +0000
|
2007-02-20 18:29:36 +01:00
|
|
|
+++ src/dynamic-plugins/sf_dynamic_plugins.c
|
2011-04-01 18:48:36 +02:00
|
|
|
@@ -244,8 +244,7 @@ void LoadAllLibs(char *path, LoadLibrary
|
|
|
|
dir_entry = readdir(directory);
|
|
|
|
while (dir_entry != NULL)
|
2007-02-20 18:29:36 +01:00
|
|
|
{
|
2011-04-01 18:48:36 +02:00
|
|
|
- if ((dir_entry->d_reclen != 0) &&
|
|
|
|
- (fnmatch(MODULE_EXT, dir_entry->d_name, FNM_PATHNAME | FNM_PERIOD) == 0))
|
|
|
|
+ if (fnmatch(MODULE_EXT, dir_entry->d_name, FNM_PATHNAME | FNM_PERIOD) == 0)
|
2007-02-20 18:29:36 +01:00
|
|
|
{
|
2011-04-01 18:48:36 +02:00
|
|
|
/* Get the string up until the first dot. This will be
|
|
|
|
* considered the file prefix. */
|