]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
From: Eric Leblond <eric@inl.fr>:
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>
Sun, 3 Feb 2008 11:43:48 +0000 (11:43 +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>
Sun, 3 Feb 2008 11:43:48 +0000 (11:43 +0000)
Changed to show pcap file name when open failed.
Based on Marius Tomaschewski work.

output/pcap/ulogd_output_PCAP.c

index 90f7e0aadd77f02048e4cd40ba8a9d8b59d165f3..59b5d2c05cb86c7007b4e568b135bc53aa15ee8a 100644 (file)
@@ -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;
                }