[PATCH 12/34] Changed to show pcap file name when open failed.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Port of Marius Tomaschewski work on ulogd.

Signed-off-by: Eric leblond <eric@xxxxxx>
---
:100644 100644 90f7e0a... 59b5d2c... M	output/pcap/ulogd_output_PCAP.c
 output/pcap/ulogd_output_PCAP.c |    3 ++-
 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;
 		}
-- 
1.5.2.5

-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux