summaryrefslogtreecommitdiff
path: root/package/procmail
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-06-02 22:09:53 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-06-02 22:09:53 +0200
commit7c520cd3ad42f5d94a9888bb9b3db7c79b6fd94f (patch)
treec2cb6c76cdcc70b6ee1ca13f6ca209cc88d84305 /package/procmail
parentec275cae0293507fd03a7eeb972780fdbd5d40aa (diff)
fix regressions for allconfig alix1c glibc target
Diffstat (limited to 'package/procmail')
-rw-r--r--package/procmail/patches/patch-src_fields_c23
-rw-r--r--package/procmail/patches/patch-src_formail_c12
-rw-r--r--package/procmail/patches/patch-src_formisc_c12
-rw-r--r--package/procmail/patches/patch-src_formisc_h9
4 files changed, 56 insertions, 0 deletions
diff --git a/package/procmail/patches/patch-src_fields_c b/package/procmail/patches/patch-src_fields_c
new file mode 100644
index 000000000..73586c79b
--- /dev/null
+++ b/package/procmail/patches/patch-src_fields_c
@@ -0,0 +1,23 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- procmail-3.22.orig/src/fields.c 2001-09-11 06:57:08.000000000 +0200
++++ procmail-3.22/src/fields.c 2009-06-02 00:23:11.000000000 +0200
+@@ -110,16 +110,16 @@ void dispfield(p)register const struct f
+ /* try and append one valid field to rdheader from stdin */
+ int readhead P((void))
+ { int idlen;
+- getline();
++ getline2();
+ if((idlen=breakfield(buf,buffilled))<=0) /* not the start of a valid field */
+ return 0;
+ if(idlen==STRLEN(FROM)&&eqFrom_(buf)) /* it's a From_ line */
+ { if(rdheader)
+ return 0; /* the From_ line was a fake! */
+- for(;buflast=='>';getline()); /* gather continued >From_ lines */
++ for(;buflast=='>';getline2()); /* gather continued >From_ lines */
+ }
+ else
+- for(;;getline()) /* get the rest of the continued field */
++ for(;;getline2()) /* get the rest of the continued field */
+ { switch(buflast) /* will this line be continued? */
+ { case ' ':case '\t': /* yep, it sure is */
+ continue;
diff --git a/package/procmail/patches/patch-src_formail_c b/package/procmail/patches/patch-src_formail_c
new file mode 100644
index 000000000..6fe45ab53
--- /dev/null
+++ b/package/procmail/patches/patch-src_formail_c
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- procmail-3.22.orig/src/formail.c 2001-09-11 06:57:32.000000000 +0200
++++ procmail-3.22/src/formail.c 2009-06-02 00:22:47.000000000 +0200
+@@ -819,7 +819,7 @@ splitit: { if(!lnl) /* did the p
+ { if(split) /* gobble up the next start separator */
+ { buffilled=0;
+ #ifdef sMAILBOX_SEPARATOR
+- getline();buffilled=0; /* but only if it's defined */
++ getline2();buffilled=0; /* but only if it's defined */
+ #endif
+ if(buflast!=EOF) /* if any */
+ goto splitit;
diff --git a/package/procmail/patches/patch-src_formisc_c b/package/procmail/patches/patch-src_formisc_c
new file mode 100644
index 000000000..c77cf94c2
--- /dev/null
+++ b/package/procmail/patches/patch-src_formisc_c
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- procmail-3.22.orig/src/formisc.c 2001-06-29 04:20:45.000000000 +0200
++++ procmail-3.22/src/formisc.c 2009-06-02 00:23:57.000000000 +0200
+@@ -115,7 +115,7 @@ void loadchar(c)const int c; /* a
+ buf[buffilled++]=c;
+ }
+
+-int getline P((void)) /* read a newline-terminated line */
++int getline2 P((void)) /* read a newline-terminated line */
+ { if(buflast==EOF) /* at the end of our Latin already? */
+ { loadchar('\n'); /* fake empty line */
+ return EOF; /* spread the word */
diff --git a/package/procmail/patches/patch-src_formisc_h b/package/procmail/patches/patch-src_formisc_h
new file mode 100644
index 000000000..9ee95d928
--- /dev/null
+++ b/package/procmail/patches/patch-src_formisc_h
@@ -0,0 +1,9 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- procmail-3.22.orig/src/formisc.h 1999-04-19 08:42:15.000000000 +0200
++++ procmail-3.22/src/formisc.h 2009-06-02 00:22:16.000000000 +0200
+@@ -17,4 +17,4 @@ void
+ char*
+ skipwords P((char*start));
+ int
+- getline P((void));
++ getline2 P((void));