aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.c
diff options
context:
space:
mode:
Diffstat (limited to 'capture_opts.c')
-rw-r--r--capture_opts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/capture_opts.c b/capture_opts.c
index bb46ac4162..2c63ca0dc1 100644
--- a/capture_opts.c
+++ b/capture_opts.c
@@ -124,6 +124,10 @@ capture_opts_init(capture_options *capture_opts, void *cfile)
#endif
capture_opts->state = CAPTURE_STOPPED;
capture_opts->output_to_pipe = FALSE;
+#ifndef _WIN32
+ capture_opts->owner = getuid();
+ capture_opts->group = getgid();
+#endif
}