aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--uid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uid.c b/uid.c
index fbb314e3..3b213ee9 100644
--- a/uid.c
+++ b/uid.c
@@ -610,7 +610,7 @@ void write_saved_lists(struct query *hostlist, const char *idfile)
{
if (outlevel >= O_DEBUG)
report(stdout, GT_("Deleting fetchids file.\n"));
- if (unlink(idfile))
+ if (unlink(idfile) && errno != ENOENT)
report(stderr, GT_("Error deleting %s: %s\n"), strerror(errno));
} else {
char *newnam = xmalloc(strlen(idfile) + 2);