diff options
author | Roland Knall <roland.knall@br-automation.com> | 2016-02-01 09:53:31 +0100 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2016-02-01 12:14:44 +0000 |
commit | 71a21d79cfa6f40ddb4f761b40720e2bf5f75906 (patch) | |
tree | 7136106d5de03c0633313745f641aa42b3edbf8a /extcap.c | |
parent | 927ffaa794d5fb24e0b4f3fba08c4c31f4dd7d63 (diff) | |
download | wireshark-71a21d79cfa6f40ddb4f761b40720e2bf5f75906.tar.gz |
extcap: Correct save for file arguments
Also add check to has_configuration
Change-Id: Ia0ffbd3bf68ad51c26bc75b5ee179db179e22bd4
Reviewed-on: https://code.wireshark.org/review/13635
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'extcap.c')
-rw-r--r-- | extcap.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -584,6 +584,11 @@ extcap_has_configuration(const char * ifname, gboolean is_required) { else if ( ! defval && (!stored || strlen(g_strchomp(stored)) <= (size_t)0) ) found = TRUE; } + + if ( arg->arg_type == EXTCAP_ARG_FILESELECT ) { + if ( arg->fileexists && ! ( file_exists(defval) || file_exists(stored) ) ) + found = TRUE; + } } } |