diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-11-16 21:31:48 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-11-17 05:32:28 +0000 |
commit | 81b246c040ab9310bf4fd96953b8fa8717976c4e (patch) | |
tree | 31e2bedb7830384ce75b29af932cade8d2b9b8ad /dumpcap.c | |
parent | bbeb5acb07132335fa7ccf89166429359cf1be37 (diff) |
No need for a read/write descriptor for the output file.
Change-Id: I66539b27f09d3a5acaae2c0ee080bca984c17468
Reviewed-on: https://code.wireshark.org/review/24457
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2874,7 +2874,7 @@ capture_loop_open_output(capture_options *capture_opts, int *save_file_fd, } } else { /* Try to open/create the specified file for use as a capture buffer. */ - *save_file_fd = ws_open(capfile_name, O_RDWR|O_BINARY|O_TRUNC|O_CREAT, + *save_file_fd = ws_open(capfile_name, O_WRONLY|O_BINARY|O_TRUNC|O_CREAT, (capture_opts->group_read_access) ? 0640 : 0600); } } |