aboutsummaryrefslogtreecommitdiffstats
path: root/uid.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-07-03 18:59:37 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-07-03 18:59:37 +0000
commit7956b1555138ce0eb84e41b0df7d708fd88129cf (patch)
tree8f1b05285ac5ebead50f0c76d93d408172a7fe0f /uid.c
parent5f3c76c1a021ff6643ea7db8fd97dcb5fb1e68da (diff)
downloadfetchmail-7956b1555138ce0eb84e41b0df7d708fd88129cf.tar.gz
fetchmail-7956b1555138ce0eb84e41b0df7d708fd88129cf.tar.bz2
fetchmail-7956b1555138ce0eb84e41b0df7d708fd88129cf.zip
Don't complain if the .fetchids file we're trying to delete is already gone.
Reported by Miloslav Trmac. svn path=/trunk/; revision=4075
Diffstat (limited to 'uid.c')
-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);