summaryrefslogtreecommitdiffstats
path: root/output/pcap/ulogd_output_PCAP.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-02-03 11:43:48 +0000
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-02-03 11:43:48 +0000
commit72d0d1d1a2a0a1bdf3f899aaa6cf2809723f72b3 (patch)
treecc812c354297d8d3d4d79633182b00ee2a5a32d3 /output/pcap/ulogd_output_PCAP.c
parentb3f6c3c7163625ce93c0a27bd37c1fac462abfb8 (diff)
From: Eric Leblond <eric@inl.fr>:
Changed to show pcap file name when open failed. Based on Marius Tomaschewski work.
Diffstat (limited to 'output/pcap/ulogd_output_PCAP.c')
-rw-r--r--output/pcap/ulogd_output_PCAP.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/output/pcap/ulogd_output_PCAP.c b/output/pcap/ulogd_output_PCAP.c
index 90f7e0a..59b5d2c 100644
--- a/output/pcap/ulogd_output_PCAP.c
+++ b/output/pcap/ulogd_output_PCAP.c
@@ -204,7 +204,8 @@ static int append_create_outfile(struct ulogd_pluginstance *upi)
if (!exist) {
pi->of = fopen(filename, "w");
if (!pi->of) {
- ulogd_log(ULOGD_ERROR, "can't open pcap file: %s\n",
+ ulogd_log(ULOGD_ERROR, "can't open pcap file %s: %s\n",
+ filename,
strerror(errno));
return -EPERM;
}