diff options
Diffstat (limited to 'capture_loop.c')
-rw-r--r-- | capture_loop.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/capture_loop.c b/capture_loop.c index cd4f905cbe..15f85d0144 100644 --- a/capture_loop.c +++ b/capture_loop.c @@ -1191,6 +1191,9 @@ capture_loop_open_output(capture_options *capture_opts, int *save_file_fd, capture_opts->save_file = capfile_name; /* capture_opts.save_file is "g_free"ed later, which is equivalent to "g_free(capfile_name)". */ +#ifndef _WIN32 + fchown(*save_file_fd, capture_opts->owner, capture_opts->group); +#endif return TRUE; } |