diff options
author | David Perry <boolean263@protonmail.com> | 2022-02-09 14:32:28 +0000 |
---|---|---|
committer | A Wireshark GitLab Utility <6629907-ws-gitlab-utility@users.noreply.gitlab.com> | 2022-02-09 14:32:28 +0000 |
commit | 1e0d117eb7ab1ce7f4ff8a4fd6dc2529634d7baa (patch) | |
tree | e7670b02e6c4d49e4f321864e730e0e48433b151 /capture | |
parent | f72787e86ff78790559fd5550e98865e225bfb68 (diff) |
Specify directory for temporary captures
Diffstat (limited to 'capture')
-rw-r--r-- | capture/capture_sync.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/capture/capture_sync.c b/capture/capture_sync.c index 8f17bbbc91..720c4eaf93 100644 --- a/capture/capture_sync.c +++ b/capture/capture_sync.c @@ -266,6 +266,11 @@ sync_pipe_start(capture_options *capture_opts, GPtrArray *capture_comments, } } + if (capture_opts->temp_dir) { + argv = sync_pipe_add_arg(argv, &argc, "--temp-dir"); + argv = sync_pipe_add_arg(argv, &argc, capture_opts->temp_dir); + } + if (capture_opts->multi_files_on) { if (capture_opts->has_autostop_filesize) { char sfilesize[ARGV_NUMBER_LEN]; |