]> Pileus Git - ~andy/fetchmail/commitdiff
Remove FETCHMAIL_DEBUG diversion that couldn't be officially enabled and was
authorMatthias Andree <matthias.andree@gmx.de>
Tue, 6 Nov 2007 15:39:43 +0000 (15:39 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Tue, 6 Nov 2007 15:39:43 +0000 (15:39 -0000)
prone to symlink attacks. Found by Nico Golde.

svn path=/branches/BRANCH_6-3/; revision=5134

NEWS
fetchmail.h

diff --git a/NEWS b/NEWS
index 0ef1534dccbcb6a7cdcf52649957eb1fdcb4a143..a5c4e4e83121de1778e28a9dee944cc4e517acf9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -67,6 +67,11 @@ fetchmail 6.3.9 (not yet released):
   Fixes Debian Bug#421446 (Holger Leskien), Novell Bug #247233 (Jon Nelson).
   Thanks to Matthias Strauß for a configuration to reproduce the issue.
 
+# CHANGES:
+* Removed dead FETCHMAIL_DEBUG code from fetchmail.h that was disabled by 
+  default with no switches in configure to enable it. However, the macro would 
+  have been prone to a symlink attack. Found by Nico Golde.
+
 # DOCUMENTATION:
 * Add fetchmail-SA-2007-02.txt
 * Re-add two lines to the manual page that had accidentally become comments 
index 605bcb05d6b11cadafb99a9ecf0e201a26fe7a5a..107dffc1def62132d2674a71e19decf20209d407 100644 (file)
@@ -716,18 +716,6 @@ char *strerror (int);
 char *stpcpy(char *, const char*);
 #endif
 
-#ifdef FETCHMAIL_DEBUG
-#define exit(e) do { \
-       FILE *out; \
-       out = fopen("/tmp/fetchmail.log", "a"); \
-       fprintf(out, \
-               "Exiting fetchmail from file %s, line %d with status %d\n", \
-               __FILE__, __LINE__, e); \
-       fclose(out); \
-       _exit(e); \
-       } while(0)
-#endif /* FETCHMAIL_DEBUG */
-
 #ifdef __CYGWIN__
 #define ROOT_UID 18
 #else /* !__CYGWIN__ */