-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
30 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,19 +19,21 @@ EDITED by esclear for wireshark 4.0 | |
|
||
EDITED by paveloom for wireshark 4.2 | ||
|
||
EDITED by pabloaul for wireshark 4.4 | ||
|
||
Signed-off-by: Franz Pletz <[email protected]> | ||
--- | ||
capture/capture_sync.c | 13 ++++++++++--- | ||
1 file changed, 10 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/capture/capture_sync.c b/capture/capture_sync.c | ||
index 01e9510a27..e439098298 100644 | ||
index 946dc810db..ef0b6e12cd 100644 | ||
--- a/capture/capture_sync.c | ||
+++ b/capture/capture_sync.c | ||
@@ -225,8 +225,15 @@ init_pipe_args(int *argc) { | ||
@@ -243,8 +243,15 @@ init_pipe_args(int *argc) { | ||
char *exename; | ||
char **argv; | ||
|
||
- /* Find the absolute path of the dumpcap executable. */ | ||
- exename = get_executable_path("dumpcap"); | ||
+ /* NixOS patch: Look for dumpcap in PATH first, because there may be a | ||
|
@@ -46,14 +48,12 @@ index 01e9510a27..e439098298 100644 | |
if (exename == NULL) { | ||
return NULL; | ||
} | ||
@@ -533,7 +540,7 @@ sync_pipe_open_command(char* const argv[], int *data_read_fd, | ||
dup2(sync_pipe[PIPE_WRITE], 2); | ||
ws_close(sync_pipe[PIPE_READ]); | ||
ws_close(sync_pipe[PIPE_WRITE]); | ||
@@ -596,7 +603,7 @@ sync_pipe_open_command(char **argv, int *data_read_fd, | ||
snprintf(sync_id, ARGV_NUMBER_LEN, "%d", sync_pipe[PIPE_WRITE]); | ||
argv = sync_pipe_add_arg(argv, &argc, sync_id); | ||
#endif | ||
- execv(argv[0], argv); | ||
+ execvp(argv[0], argv); | ||
sync_pipe_write_int_msg(2, SP_EXEC_FAILED, errno); | ||
|
||
/* Exit with "_exit()", so that we don't close the connection | ||
-- | ||
2.42.0 | ||
sync_pipe_write_int_msg(sync_pipe[PIPE_WRITE], SP_EXEC_FAILED, errno); | ||
|
||
/* Exit with "_exit()", so that we don't close the connection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters