From a7ba3bdce520d1bc6bdab84076a807868fe83b0b Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 3 Jul 2005 22:55:38 +0000 Subject: 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 --- uid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uid.c') 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); -- cgit v1.2.3