summary refs log tree commit diff
path: root/pkgs/applications/misc/fetchmail
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2008-01-30 19:49:42 +0000
committerYury G. Kudryashov <urkud.urkud@gmail.com>2008-01-30 19:49:42 +0000
commit81aac8d84d9842e60f1781205c7d4edefc5fe128 (patch)
tree7dfd2e8757b3469b241c6f02cd2c87492d1f2aa8 /pkgs/applications/misc/fetchmail
parentbea41a64b42309a9cf06a1bb50d26c04728ab26e (diff)
downloadnixpkgs-81aac8d84d9842e60f1781205c7d4edefc5fe128.tar
nixpkgs-81aac8d84d9842e60f1781205c7d4edefc5fe128.tar.gz
nixpkgs-81aac8d84d9842e60f1781205c7d4edefc5fe128.tar.bz2
nixpkgs-81aac8d84d9842e60f1781205c7d4edefc5fe128.tar.lz
nixpkgs-81aac8d84d9842e60f1781205c7d4edefc5fe128.tar.xz
nixpkgs-81aac8d84d9842e60f1781205c7d4edefc5fe128.tar.zst
nixpkgs-81aac8d84d9842e60f1781205c7d4edefc5fe128.zip
meta.homepage added to several packages
svn path=/nixpkgs/trunk/; revision=10417
Diffstat (limited to 'pkgs/applications/misc/fetchmail')
-rw-r--r--pkgs/applications/misc/fetchmail/default.nix9
-rw-r--r--pkgs/applications/misc/fetchmail/security-fix.patch11
2 files changed, 19 insertions, 1 deletions
diff --git a/pkgs/applications/misc/fetchmail/default.nix b/pkgs/applications/misc/fetchmail/default.nix
index 95fc61668fc..9639ff19fb0 100644
--- a/pkgs/applications/misc/fetchmail/default.nix
+++ b/pkgs/applications/misc/fetchmail/default.nix
@@ -1,7 +1,14 @@
-args: with args; stdenv.mkDerivation {
+args: with args;
+stdenv.mkDerivation {
   name="fetchmail-6.3.8";
   src = fetchurl {
     url = http://download.berlios.de/fetchmail/fetchmail-6.3.8.tar.bz2;
     sha256 = "5612f9af367f641e0efd084f44fcf1889669e711dbd8c60f6b7953e494d1b09b";
   };
+
+  patches = [ ./security-fix.patch ];
+
+  meta = {
+    homepage = http://www.fetchmail.info;
+  };
 }
diff --git a/pkgs/applications/misc/fetchmail/security-fix.patch b/pkgs/applications/misc/fetchmail/security-fix.patch
new file mode 100644
index 00000000000..4d48c7aa055
--- /dev/null
+++ b/pkgs/applications/misc/fetchmail/security-fix.patch
@@ -0,0 +1,11 @@
+--- old/sink.c	(revision 5118)
++++ new/sink.c	(revision 5119)
+@@ -262,7 +262,7 @@
+     const char *md1 = "MAILER-DAEMON", *md2 = "MAILER-DAEMON@";
+ 
+     /* don't bounce in reply to undeliverable bounces */
+-    if (!msg->return_path[0] ||
++    if (!msg || !msg->return_path[0] ||
+ 	strcmp(msg->return_path, "<>") == 0 ||
+ 	strcasecmp(msg->return_path, md1) == 0 ||
+ 	strncasecmp(msg->return_path, md2, strlen(md2)) == 0)