Browse Source

nfqws,tpws: show hostlist/ipset stat() error

pull/1157/head
bol-van 2 months ago
parent
commit
00619c8dab
  1. 2
      nfq/desync.c
  2. 1
      nfq/hostlist.c
  3. 1
      nfq/ipset.c
  4. 1
      tpws/hostlist.c
  5. 1
      tpws/ipset.c

2
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))

1
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;
}

1
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;
}

1
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;
}

1
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;
}

Loading…
Cancel
Save