diff options
author | 2006-03-01 10:40:37 +0000 | |
---|---|---|
committer | 2006-03-01 10:40:37 +0000 | |
commit | c9d0a3270ff4fb2d1b23e5b10c99bf4d8d38b414 (patch) | |
tree | 04cdb9232480c85d4fafcfc58c60cdb1a4f5f3e1 /net-mail/fetchmail/files | |
parent | Prefer SVCNAME over myservice (diff) | |
download | gentoo-2-c9d0a3270ff4fb2d1b23e5b10c99bf4d8d38b414.tar.gz gentoo-2-c9d0a3270ff4fb2d1b23e5b10c99bf4d8d38b414.tar.bz2 gentoo-2-c9d0a3270ff4fb2d1b23e5b10c99bf4d8d38b414.zip |
Apply the .netrc segfault patch. Suggested in bug #124477 by Paul Thompson <thompson at pobox.com>.
(Portage version: 2.1_pre5-r1)
Diffstat (limited to 'net-mail/fetchmail/files')
-rw-r--r-- | net-mail/fetchmail/files/digest-fetchmail-6.3.2-r1 | 3 | ||||
-rw-r--r-- | net-mail/fetchmail/files/patch-6.3.2.1-fix-netrc-SIGSEGV.diff | 27 |
2 files changed, 30 insertions, 0 deletions
diff --git a/net-mail/fetchmail/files/digest-fetchmail-6.3.2-r1 b/net-mail/fetchmail/files/digest-fetchmail-6.3.2-r1 new file mode 100644 index 000000000000..880f6b317e45 --- /dev/null +++ b/net-mail/fetchmail/files/digest-fetchmail-6.3.2-r1 @@ -0,0 +1,3 @@ +MD5 a532134a5e3b35b4f8b78a8184439837 fetchmail-6.3.2.tar.bz2 1190838 +RMD160 463c77dced9e0d3fe4f4cd951d3c7f7b35d6fe48 fetchmail-6.3.2.tar.bz2 1190838 +SHA256 4fbb779c0fddf74af8267a8e8a68bc276c7afc2c854e04b754ca7ebbab2f876e fetchmail-6.3.2.tar.bz2 1190838 diff --git a/net-mail/fetchmail/files/patch-6.3.2.1-fix-netrc-SIGSEGV.diff b/net-mail/fetchmail/files/patch-6.3.2.1-fix-netrc-SIGSEGV.diff new file mode 100644 index 000000000000..2b6d112b2dde --- /dev/null +++ b/net-mail/fetchmail/files/patch-6.3.2.1-fix-netrc-SIGSEGV.diff @@ -0,0 +1,27 @@ +Craig Leres identified a problem that makes fetchmail 6.3.2 (only this +version) crash if the .netrc file does not contain a password for a +particular account. + +This patch is mostly Craig Leres' work has been committed to the +SVN repository and should be applied to fetchmail 6.3.2 on all sites +that plan to use netrc files: + +Index: netrc.c +=================================================================== +--- 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); + +Sorry for the inconvenience. -- Matthias Andree, 2006-01-30 |