From: Long Doan Date: Tue, 6 Jun 2023 22:08:06 +0000 (+0200) Subject: source-pcap-file: include unlink error in warning message X-Git-Tag: suricata-7.0.0-rc2~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dc486af502e1a64764cba7aae0a8b3a50bea2c1;p=thirdparty%2Fsuricata.git source-pcap-file: include unlink error in warning message --- diff --git a/src/source-pcap-file-helper.c b/src/source-pcap-file-helper.c index de78fc45f1..8853080e91 100644 --- a/src/source-pcap-file-helper.c +++ b/src/source-pcap-file-helper.c @@ -47,7 +47,7 @@ void CleanupPcapFileFileVars(PcapFileFileVars *pfv) if (pfv->shared != NULL && pfv->shared->should_delete) { SCLogDebug("Deleting pcap file %s", pfv->filename); if (unlink(pfv->filename) != 0) { - SCLogWarning("Failed to delete %s", pfv->filename); + SCLogWarning("Failed to delete %s: %s", pfv->filename, strerror(errno)); } } SCFree(pfv->filename);