aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-11-16 21:31:48 -0800
committerGuy Harris <guy@alum.mit.edu>2017-11-17 05:32:28 +0000
commit81b246c040ab9310bf4fd96953b8fa8717976c4e (patch)
tree31e2bedb7830384ce75b29af932cade8d2b9b8ad /dumpcap.c
parentbbeb5acb07132335fa7ccf89166429359cf1be37 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dumpcap.c b/dumpcap.c
index f73d60e92e..38209b94a9 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -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);
}
}