aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-07-03 22:55:38 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-07-03 22:55:38 +0000
commita7ba3bdce520d1bc6bdab84076a807868fe83b0b (patch)
treebde1d67ea3ca0c0dd5f566697d0563420d0adeb2
parent9e69418a4b0a995f8bd371639acebc08cdeb7166 (diff)
downloadfetchmail-a7ba3bdce520d1bc6bdab84076a807868fe83b0b.tar.gz
fetchmail-a7ba3bdce520d1bc6bdab84076a807868fe83b0b.tar.bz2
fetchmail-a7ba3bdce520d1bc6bdab84076a807868fe83b0b.zip
Fix argument messup that printed the error instead of the file name, and garbage instead of the error message.
Reported by Jakob Hirsch. svn path=/trunk/; revision=4084
-rw-r--r--uid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uid.c b/uid.c
index 3b213ee9..eef01887 100644
--- a/uid.c
+++ b/uid.c
@@ -611,7 +611,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) && errno != ENOENT)
- report(stderr, GT_("Error deleting %s: %s\n"), strerror(errno));
+ report(stderr, GT_("Error deleting %s: %s\n"), idfile, strerror(errno));
} else {
char *newnam = xmalloc(strlen(idfile) + 2);
strcpy(newnam, idfile);