summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando J. Pereda <ferdy@gentoo.org>2005-05-27 13:07:08 +0000
committerFernando J. Pereda <ferdy@gentoo.org>2005-05-27 13:07:08 +0000
commit82208f1a148142eff2b5e1c73dc55301d12e2e5a (patch)
treea15961deaf4d9ff0362334469e25d22c403ed022 /net-mail/mailutils/files
parentexamples is a global flag, remove local instances. (diff)
downloadhistorical-82208f1a148142eff2b5e1c73dc55301d12e2e5a.tar.gz
historical-82208f1a148142eff2b5e1c73dc55301d12e2e5a.tar.bz2
historical-82208f1a148142eff2b5e1c73dc55301d12e2e5a.zip
Added two patches (security and fixes compiling on alpha). Readded ~alpha so
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'net-mail/mailutils/files')
-rw-r--r--net-mail/mailutils/files/mailutils-SQLinjection.patch20
-rw-r--r--net-mail/mailutils/files/mailutils-getline.diff21
2 files changed, 41 insertions, 0 deletions
diff --git a/net-mail/mailutils/files/mailutils-SQLinjection.patch b/net-mail/mailutils/files/mailutils-SQLinjection.patch
new file mode 100644
index 000000000000..c87b6bf6ac31
--- /dev/null
+++ b/net-mail/mailutils/files/mailutils-SQLinjection.patch
@@ -0,0 +1,20 @@
+--- auth/sql.c.orig 2005-03-08 14:24:11.000000000 -0800
++++ auth/sql.c 2005-05-13 19:12:38.000000000 -0700
+@@ -74,7 +74,7 @@
+
+ for (p = (const unsigned char *) ustr; *p; p++)
+ {
+- if (strchr ("'\"", *p))
++ if (strchr ("'\"\\", *p))
+ len++;
+ }
+
+@@ -84,7 +84,7 @@
+
+ for (p = (const unsigned char *) ustr, q = str; *p; p++)
+ {
+- if (strchr ("'\"", *p))
++ if (strchr ("'\"\\", *p))
+ *q++ = '\\';
+ *q++ = *p;
+ }
diff --git a/net-mail/mailutils/files/mailutils-getline.diff b/net-mail/mailutils/files/mailutils-getline.diff
new file mode 100644
index 000000000000..b957473f3025
--- /dev/null
+++ b/net-mail/mailutils/files/mailutils-getline.diff
@@ -0,0 +1,21 @@
+--- ./mailbox/getline.h.old 2005-01-01 16:39:25.619823831 +0100
++++ ./mailbox/getline.h 2005-01-01 16:28:47.798840941 +0100
+@@ -18,6 +18,7 @@
+ #ifndef _GETLINE_H_
+ # define _GETLINE_H_ 1
+
++# include <sys/types.h>
+ # include <stdio.h>
+
+ # ifndef PARAMS
+@@ -28,8 +29,8 @@
+ # endif
+ # endif
+
+-extern int getline PARAMS ((char **_lineptr, size_t *_n, FILE *_stream));
++extern ssize_t getline PARAMS ((char **_lineptr, size_t *_n, FILE *_stream));
+
+-extern int getdelim PARAMS ((char **_lineptr, size_t *_n, int _delimiter, FILE *_stream));
++extern ssize_t getdelim PARAMS ((char **_lineptr, size_t *_n, int _delimiter, FILE *_stream));
+
+ #endif /* ! _GETLINE_H_ */