#71: fetchmail 6.3.2 somewhat relevant patch --------------------+------------------------------------------------------- Id: 71 | Status: new Component: ports | Modified: Mon Jan 30 12:00:21 2006 Severity: normal | Milestone: Priority: normal | Version: Owner: per | Reporter: martin@koniczek.de --------------------+------------------------------------------------------- see https://lists.berlios.de/pipermail/fetchmail- users/2006-January/000276.html for details. perhaps for port maintainers/packagers convenience, i provide a diff of my patched port against current opt/fetchmail: {{{ diff -NurpP --minimal fetchmail/.md5sum fetchmail.p/.md5sum --- fetchmail/.md5sum 2006-01-22 19:30:34.000000000 +0100 +++ fetchmail.p/.md5sum 2006-01-30 11:46:45.000000000 +0100 @@ -1 +1,2 @@ a532134a5e3b35b4f8b78a8184439837 fetchmail-6.3.2.tar.bz2 +43c193d8a23bb97dfc4f113857265276 patch-6.3.2.1-fix-netrc-SIGSEGV.diff diff -NurpP --minimal fetchmail/Pkgfile fetchmail.p/Pkgfile --- fetchmail/Pkgfile 2006-01-22 19:30:34.000000000 +0100 +++ fetchmail.p/Pkgfile 2006-01-30 11:54:48.000000000 +0100 @@ -5,11 +5,12 @@ name=fetchmail version=6.3.2 -release=1 -source=(http://download.berlios.de/$name/$name-$version.tar.bz2) +release=2 +source=(http://download.berlios.de/$name/$name-$version.tar.bz2 patch-6.3.2.1-fix-netrc-SIGSEGV.diff) build() { cd $name-$version + patch -p0 <../patch-6.3.2.1-fix-netrc-SIGSEGV.diff ./configure --prefix=/usr --with-ssl=/usr --disable-nls make make DESTDIR=$PKG install diff -NurpP --minimal fetchmail/patch-6.3.2.1-fix-netrc-SIGSEGV.diff fetchmail.p/patch-6.3.2.1-fix-netrc-SIGSEGV.diff --- fetchmail/patch-6.3.2.1-fix-netrc-SIGSEGV.diff 1970-01-01 01:00:00.000000000 +0100 +++ fetchmail.p/patch-6.3.2.1-fix-netrc-SIGSEGV.diff 2006-01-30 11:46:27.000000000 +0100 @@ -0,0 +1,15 @@ +--- netrc.c (Revision 4683) ++++ netrc.c (Revision 4684) +@@ -314,8 +314,10 @@ + free_netrc(netrc_entry *a) { + while(a) { + netrc_entry *n = a->next; +- memset(a->password, 0x55, strlen(a->password)); +- xfree(a->password); ++ if (a->password != NULL) { ++ memset(a->password, 0x55, strlen(a->password)); ++ free(a->password); ++ } + xfree(a->login); + xfree(a->host); + xfree(a); }}} -- Ticket URL: <http://crux.nu/cgi-bin/trac.cgi/ticket/71> CRUX <http://crux.nu/> CRUX