From 00619c8dabd7f62d84982905f8cad348bcb48fb8 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sun, 2 Feb 2025 22:48:23 +0300 Subject: [PATCH] nfqws,tpws: show hostlist/ipset stat() error --- nfq/desync.c | 2 +- nfq/hostlist.c | 1 + nfq/ipset.c | 1 + tpws/hostlist.c | 1 + tpws/ipset.c | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nfq/desync.c b/nfq/desync.c index 9aef4ff..4b6d9fa 100644 --- a/nfq/desync.c +++ b/nfq/desync.c @@ -354,7 +354,7 @@ static void auto_hostlist_failed(struct desync_profile *dp, const char *hostname } if (!append_to_list_file(dp->hostlist_auto->filename, hostname)) { - DLOG_PERROR("write to auto hostlist:"); + DLOG_PERROR("write to auto hostlist"); return; } if (!file_mod_signature(dp->hostlist_auto->filename, &dp->hostlist_auto->mod_sig)) diff --git a/nfq/hostlist.c b/nfq/hostlist.c index 34e25cf..42564a6 100644 --- a/nfq/hostlist.c +++ b/nfq/hostlist.c @@ -109,6 +109,7 @@ static bool LoadHostList(struct hostlist_file *hfile) if (!file_mod_signature(hfile->filename, &fsig)) { // stat() error + DLOG_PERROR("file_mod_signature"); DLOG_ERR("cannot access hostlist file '%s'. in-memory content remains unchanged.\n",hfile->filename); return true; } diff --git a/nfq/ipset.c b/nfq/ipset.c index a4d1ebe..a853582 100644 --- a/nfq/ipset.c +++ b/nfq/ipset.c @@ -130,6 +130,7 @@ static bool LoadIpset(struct ipset_file *hfile) if (!file_mod_signature(hfile->filename, &fsig)) { // stat() error + DLOG_PERROR("file_mod_signature"); DLOG_ERR("cannot access ipset file '%s'. in-memory content remains unchanged.\n",hfile->filename); return true; } diff --git a/tpws/hostlist.c b/tpws/hostlist.c index c10aca6..e1c42bb 100644 --- a/tpws/hostlist.c +++ b/tpws/hostlist.c @@ -109,6 +109,7 @@ static bool LoadHostList(struct hostlist_file *hfile) if (!file_mod_signature(hfile->filename, &fsig)) { // stat() error + DLOG_PERROR("file_mod_signature"); DLOG_ERR("cannot access hostlist file '%s'. in-memory content remains unchanged.\n",hfile->filename); return true; } diff --git a/tpws/ipset.c b/tpws/ipset.c index b486eb4..4be5aed 100644 --- a/tpws/ipset.c +++ b/tpws/ipset.c @@ -130,6 +130,7 @@ static bool LoadIpset(struct ipset_file *hfile) if (!file_mod_signature(hfile->filename, &fsig)) { // stat() error + DLOG_PERROR("file_mod_signature"); DLOG_ERR("cannot access ipset file '%s'. in-memory content remains unchanged.\n",hfile->filename); return true; }