diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-03-24 18:37:35 +0100 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-03-24 20:54:01 +0000 |
commit | 7710da4d775689ffe1b218ee99435cdc2c63331e (patch) | |
tree | 99542242379470df90f86c2b085fceddb9296f90 /wsutil/filesystem.c | |
parent | 6545d199cc7579fcb840f6453f28aa4b9f56c7dd (diff) | |
download | wireshark-7710da4d775689ffe1b218ee99435cdc2c63331e.tar.gz |
Since g2ef72cb, plugins are no more stored in plugins/$VERSION folder
Also update the custom samples to reflect the latest changes done
Change-Id: I2ac865fad1acdef5a5c4d68a155cbdf970c306f5
Reviewed-on: https://code.wireshark.org/review/7805
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'wsutil/filesystem.c')
-rw-r--r-- | wsutil/filesystem.c | 50 |
1 files changed, 2 insertions, 48 deletions
diff --git a/wsutil/filesystem.c b/wsutil/filesystem.c index 85bd7ebfd4..7b5eee83d8 100644 --- a/wsutil/filesystem.c +++ b/wsutil/filesystem.c @@ -979,30 +979,7 @@ init_plugin_dir(void) * on Windows, the data file directory is the directory * in which the Wireshark binary resides. */ - plugin_dir = g_strdup_printf("%s\\plugins\\%s", get_datafile_dir(), - VERSION); - - /* - * Make sure that pathname refers to a directory. - */ - if (test_for_directory(plugin_dir) != EISDIR) { - /* - * Either it doesn't refer to a directory or it - * refers to something that doesn't exist. - * - * Assume that means we're running a version of - * Wireshark we've built in a build directory, - * in which case {datafile dir}\plugins is the - * top-level plugins source directory, and use - * that directory and set the "we're running in - * a build directory" flag, so the plugin - * scanner will check all subdirectories of that - * directory for plugins. - */ - g_free( (gpointer) plugin_dir); - plugin_dir = g_strdup_printf("%s\\plugins", get_datafile_dir()); - running_in_build_directory_flag = TRUE; - } + plugin_dir = g_strdup_printf("%s\\plugins", get_datafile_dir()); #else if (running_in_build_directory_flag) { /* @@ -1088,30 +1065,7 @@ static void init_extcap_dir(void) { * on Windows, the data file directory is the directory * in which the Wireshark binary resides. */ - extcap_dir = g_strdup_printf("%s\\extcap\\%s", get_datafile_dir(), - VERSION); - - /* - * Make sure that pathname refers to a directory. - */ - if (test_for_directory(extcap_dir) != EISDIR) { - /* - * Either it doesn't refer to a directory or it - * refers to something that doesn't exist. - * - * Assume that means we're running a version of - * Wireshark we've built in a build directory, - * in which case {datafile dir}\plugins is the - * top-level extcap hooks source directory, and use - * that directory and set the "we're running in - * a build directory" flag, so the plugin - * scanner will check all subdirectories of that - * directory for extcap hooks. - */ - g_free( (gpointer) extcap_dir); - extcap_dir = g_strdup_printf("%s\\extcap", get_datafile_dir()); - running_in_build_directory_flag = TRUE; - } + extcap_dir = g_strdup_printf("%s\\extcap", get_datafile_dir()); #else if (running_in_build_directory_flag) { /* |