[PATCH 13/34] Display filename in the other error case.

[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 59b5d2c... 69656b1... 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 59b5d2c..69656b1 100644
--- a/output/pcap/ulogd_output_PCAP.c
+++ b/output/pcap/ulogd_output_PCAP.c
@@ -217,7 +217,8 @@ static int append_create_outfile(struct ulogd_pluginstance *upi)
 	} else {
 		pi->of = fopen(filename, "a");
 		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