TOCTOU race persists.
* fetchmailconf quotes mailbox (folder) names when writing the configuration.
Fixes BerliOS Bug #13207 (reported + fix suggested by Terry Brown).
+* Only print "Deleting fetchids file" if there actually is one.
+ Fixes Debian Bug#374514, reported by Dan Jacobson.
# CHANGES:
* autoconf 2.60 is now required to build fetchmail; it uses
/* either nuke the file or write updated last-seen IDs */
if (!idcount && !scratchlist)
{
- if (outlevel >= O_DEBUG)
- report(stdout, GT_("Deleting fetchids file.\n"));
+ if (outlevel >= O_DEBUG) {
+ if (access(idfile, F_OK) == 0)
+ report(stdout, GT_("Deleting fetchids file.\n"));
+ }
if (unlink(idfile) && errno != ENOENT)
report(stderr, GT_("Error deleting %s: %s\n"), idfile, strerror(errno));
} else {