From 7956b1555138ce0eb84e41b0df7d708fd88129cf Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 3 Jul 2005 18:59:37 +0000 Subject: Don't complain if the .fetchids file we're trying to delete is already gone. Reported by Miloslav Trmac. svn path=/trunk/; revision=4075 --- uid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3