@@ -11,16 +11,18 @@ Also change execv() to execvp() because we've set argv[0] to "dumpcap"
1111and have to enable PATH lookup. Wireshark is not a setuid program, so
1212looking in PATH is not a security issue.
1313
14+EDITED by teto for wireshark 3.6
15+
1416Signed-off-by: Franz Pletz <fpletz@fnordicwalking.de>
1517---
1618 capchild/capture_sync.c | 17 ++++++++++++++---
1719 1 file changed, 14 insertions(+), 3 deletions(-)
1820
1921diff --git a/capchild/capture_sync.c b/capchild/capture_sync.c
20−index 970688e..49914d5 100644
21−--- a/capchild/capture_sync.c
22−+++ b/capchild/capture_sync.c
23−@@ -332,7 +332,18 @@ init_pipe_args(int *argc) {
22+index f31914886a..df29b6f0ab 100644
23+--- a/capture/capture_sync.c
24++++ b/capture/capture_sync.c
25+@@ -187,7 +187,18 @@ init_pipe_args(int *argc) {
2426 #ifdef _WIN32
2527 exename = g_strdup_printf("%s\\dumpcap.exe", progfile_dir);
2628 #else
@@ -40,7 +42,7 @@ index 970688e..49914d5 100644
4042 #endif
4143
4244 /* Make that the first argument in the argument list (argv[0]). */
43−@@ -729,7 +740,7 @@ sync_pipe_start(capture_options *capture_opts, capture_session *cap_session, voi
45+@@ -572,7 +583,7 @@ sync_pipe_start(capture_options *capture_opts, capture_session *cap_session, inf
4446 */
4547 dup2(sync_pipe[PIPE_WRITE], 2);
4648 ws_close(sync_pipe[PIPE_READ]);
@@ -49,7 +51,7 @@ index 970688e..49914d5 100644
4951 g_snprintf(errmsg, sizeof errmsg, "Couldn't run %s in child process: %s",
5052 argv[0], g_strerror(errno));
5153 sync_pipe_errmsg_to_parent(2, errmsg, "");
52−@@ -997,7 +1008,7 @@ sync_pipe_open_command(char** argv, int *data_read_fd,
54+@@ -811,7 +822,7 @@ sync_pipe_open_command(char* const argv[], int *data_read_fd,
5355 dup2(sync_pipe[PIPE_WRITE], 2);
5456 ws_close(sync_pipe[PIPE_READ]);
5557 ws_close(sync_pipe[PIPE_WRITE]);
@@ -58,6 +60,3 @@ index 970688e..49914d5 100644
5860 g_snprintf(errmsg, sizeof errmsg, "Couldn't run %s in child process: %s",
5961 argv[0], g_strerror(errno));
6062 sync_pipe_errmsg_to_parent(2, errmsg, "");
61−--
62−2.6.3
63−