diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-03 22:31:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-03 22:31:06 +0000 |
commit | d860227153a0e8fad5a879763c4952b9ceb15333 (patch) | |
tree | 08a67e1eca41606691679a77314fd26b6e9345b1 /src/main/extractor_plugins.c | |
parent | 27aaf7a1df0c607bdc478fc4f49b59661db5d575 (diff) | |
download | libextractor-d860227153a0e8fad5a879763c4952b9ceb15333.tar.gz libextractor-d860227153a0e8fad5a879763c4952b9ceb15333.zip |
Dear libextractor maintainers,
With the arrival of multiarch in Debian, the standard library path changes (e.g. /usr/lib/x86_64-linux-gnu/ for amd64). The fact that it contains an underscore causes extract to fail to load its plugins, see [1].
Fortunately, Harun Trefry kindly provided a patch against the last revision of you SVN that you'll find attached. Would you consider to include it ?
Cheers,
Bertrand
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=675063
Diffstat (limited to 'src/main/extractor_plugins.c')
-rw-r--r-- | src/main/extractor_plugins.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/extractor_plugins.c b/src/main/extractor_plugins.c index d7b82bb..21b0807 100644 --- a/src/main/extractor_plugins.c +++ b/src/main/extractor_plugins.c | |||
@@ -71,14 +71,14 @@ get_symbol_with_prefix(void *lib_handle, | |||
71 | const char *(*opt_fun)(void); | 71 | const char *(*opt_fun)(void); |
72 | 72 | ||
73 | if (NULL != options) *options = NULL; | 73 | if (NULL != options) *options = NULL; |
74 | sym_name = strstr (prefix, "_"); | 74 | sym_name = strrchr (prefix, '_'); |
75 | if (sym_name == NULL) | 75 | if (sym_name == NULL) |
76 | return NULL; | 76 | return NULL; |
77 | sym_name++; | 77 | sym_name++; |
78 | sym = strdup (sym_name); | 78 | sym = strdup (sym_name); |
79 | if (sym == NULL) | 79 | if (sym == NULL) |
80 | return NULL; | 80 | return NULL; |
81 | dot = strstr (sym, "."); | 81 | dot = strchr (sym, '.'); |
82 | if (dot != NULL) | 82 | if (dot != NULL) |
83 | *dot = '\0'; | 83 | *dot = '\0'; |
84 | name = malloc(strlen(sym) + strlen(template) + 1); | 84 | name = malloc(strlen(sym) + strlen(template) + 1); |