Dash:
[t2-trunk.git] / package / mail / procmail / hotfix-glibc.patch
blob0494d23e67ee515d080b8b08a436069d446e3232
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../procmail/glibc.patch
5 # Copyright (C) 2009 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 diff -up procmail-3.22/src/fields.c.getline procmail-3.22/src/fields.c
18 --- procmail-3.22/src/fields.c.getline 2001-09-11 06:57:08.000000000 +0200
19 +++ procmail-3.22/src/fields.c 2009-06-30 16:10:36.000000000 +0200
20 @@ -110,16 +110,16 @@ void dispfield(p)register const struct f
21 /* try and append one valid field to rdheader from stdin */
22 int readhead P((void))
23 { int idlen;
24 - getline();
25 + get_line();
26 if((idlen=breakfield(buf,buffilled))<=0) /* not the start of a valid field */
27 return 0;
28 if(idlen==STRLEN(FROM)&&eqFrom_(buf)) /* it's a From_ line */
29 { if(rdheader)
30 return 0; /* the From_ line was a fake! */
31 - for(;buflast=='>';getline()); /* gather continued >From_ lines */
32 + for(;buflast=='>';get_line()); /* gather continued >From_ lines */
34 else
35 - for(;;getline()) /* get the rest of the continued field */
36 + for(;;get_line()) /* get the rest of the continued field */
37 { switch(buflast) /* will this line be continued? */
38 { case ' ':case '\t': /* yep, it sure is */
39 continue;
40 diff -up procmail-3.22/src/formail.c.getline procmail-3.22/src/formail.c
41 --- procmail-3.22/src/formail.c.getline 2009-06-30 16:00:40.000000000 +0200
42 +++ procmail-3.22/src/formail.c 2009-06-30 16:10:49.000000000 +0200
43 @@ -819,7 +819,7 @@ splitit: { if(!lnl) /* did the p
44 { if(split) /* gobble up the next start separator */
45 { buffilled=0;
46 #ifdef sMAILBOX_SEPARATOR
47 - getline();buffilled=0; /* but only if it's defined */
48 + get_line();buffilled=0; /* but only if it's defined */
49 #endif
50 if(buflast!=EOF) /* if any */
51 goto splitit;
52 diff -up procmail-3.22/src/formisc.c.getline procmail-3.22/src/formisc.c
53 --- procmail-3.22/src/formisc.c.getline 2001-06-29 04:20:45.000000000 +0200
54 +++ procmail-3.22/src/formisc.c 2009-06-30 16:12:20.000000000 +0200
55 @@ -115,7 +115,7 @@ void loadchar(c)const int c; /* a
56 buf[buffilled++]=c;
59 -int getline P((void)) /* read a newline-terminated line */
60 +int get_line P((void)) /* read a newline-terminated line */
61 { if(buflast==EOF) /* at the end of our Latin already? */
62 { loadchar('\n'); /* fake empty line */
63 return EOF; /* spread the word */
64 diff -up procmail-3.22/src/formisc.h.getline procmail-3.22/src/formisc.h
65 --- procmail-3.22/src/formisc.h.getline 1999-04-19 08:42:15.000000000 +0200
66 +++ procmail-3.22/src/formisc.h 2009-06-30 16:10:02.000000000 +0200
67 @@ -17,4 +17,4 @@ void
68 char*
69 skipwords P((char*start));
70 int
71 - getline P((void));
72 + get_line P((void));