packages: apache1/apache1.spec, apache1/apache1-getline.patch (NEW) - getli...
glen
glen at pld-linux.org
Fri Oct 30 16:30:00 CET 2009
Author: glen Date: Fri Oct 30 15:30:00 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- getline patch
---- Files affected:
packages/apache1:
apache1.spec (1.208 -> 1.209) , apache1-getline.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/apache1/apache1.spec
diff -u packages/apache1/apache1.spec:1.208 packages/apache1/apache1.spec:1.209
--- packages/apache1/apache1.spec:1.208 Fri Oct 30 12:29:25 2009
+++ packages/apache1/apache1.spec Fri Oct 30 16:29:54 2009
@@ -109,6 +109,7 @@
Patch40: %{name}-security_htpasswd_user_buffer_overflow.patch
Patch41: %{name}-security_check_forensic_tempfiles.patch
Patch42: %{name}-lingerd.patch
+Patch43: %{name}-getline.patch
URL: http://httpd.apache.org/
BuildRequires: bash
BuildRequires: db-devel >= 4.1
@@ -1343,13 +1344,13 @@
%patch39 -p2
%patch40 -p2
%patch41 -p2
-
%if %{with lingerd}
mkdir -p lingerd
cp -a lingerd-*/{README,TUNING,LICENSE,TODO,ChangeLog} lingerd
cp -a lingerd-*/{apache-1.3/ap_lingerd.c,li_config.h} src/main
%patch42 -p1
%endif
+%patch43 -p1
# make manual link with full path
%{__sed} -i -e 's,href="manual/,href="/manual/,i' htdocs/index.html.*
@@ -2492,6 +2493,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.209 2009/10/30 15:29:54 glen
+- getline patch
+
Revision 1.208 2009/10/30 11:29:25 glen
- release 21
================================================================
Index: packages/apache1/apache1-getline.patch
diff -u /dev/null packages/apache1/apache1-getline.patch:1.1
--- /dev/null Fri Oct 30 16:30:00 2009
+++ packages/apache1/apache1-getline.patch Fri Oct 30 16:29:54 2009
@@ -0,0 +1,78 @@
+--- apache_1.3.41/src/support/logresolve.c~ 2009-10-30 17:25:18.000000000 +0200
++++ apache_1.3.41/src/support/logresolve.c 2009-10-30 17:26:43.170695467 +0200
+@@ -73,7 +73,7 @@
+ #include "sa_len.h"
+
+ static void cgethost(struct sockaddr *sa, char *string, int check);
+-static int getline(char *s, int n);
++static int ap_getline(char *s, int n);
+ static void stats(FILE *output);
+
+
+@@ -329,7 +329,7 @@
+ * gets a line from stdin
+ */
+
+-static int getline (char *s, int n)
++static int ap_getline (char *s, int n)
+ {
+ char *cp;
+
+@@ -378,7 +378,7 @@
+ for (i = 0; i < MAX_ERR + 2; i++)
+ errors[i] = 0;
+
+- while (getline(line, MAXLINE)) {
++ while (ap_getline(line, MAXLINE)) {
+ if (line[0] == '\0')
+ continue;
+ entries++;
+--- apache_1.3.41/src/support/htdigest.c~ 2009-10-30 17:25:18.000000000 +0200
++++ apache_1.3.41/src/support/htdigest.c 2009-10-30 17:26:59.554860724 +0200
+@@ -71,7 +71,7 @@
+ while ((line[y++] = line[x++]));
+ }
+
+-static int getline(char *s, int n, FILE *f)
++static int ap_getline(char *s, int n, FILE *f)
+ {
+ register int i = 0;
+
+@@ -159,7 +159,7 @@
+ {
+ static char line[MAX_STRING_LEN];
+
+- while (!(getline(line, MAX_STRING_LEN, source))) {
++ while (!(ap_getline(line, MAX_STRING_LEN, source))) {
+ putline(target, line);
+ }
+ }
+@@ -222,7 +222,7 @@
+ ap_cpystrn(realm, argv[2], sizeof(realm));
+
+ found = 0;
+- while (!(getline(line, MAX_STRING_LEN, f))) {
++ while (!(ap_getline(line, MAX_STRING_LEN, f))) {
+ if (found || (line[0] == '#') || (!line[0])) {
+ putline(tfp, line);
+ continue;
+--- apache_1.3.41/src/support/htpasswd.c~ 2009-10-30 17:25:18.000000000 +0200
++++ apache_1.3.41/src/support/htpasswd.c 2009-10-30 17:27:11.887151384 +0200
+@@ -98,7 +98,7 @@
+ * Get a line of input from the user, not including any terminating
+ * newline.
+ */
+-static int getline(char *s, int n, FILE *f)
++static int ap_getline(char *s, int n, FILE *f)
+ {
+ register int i = 0;
+
+@@ -553,7 +553,7 @@
+ char scratch[MAX_STRING_LEN];
+
+ fpw = fopen(pwfilename, "r");
+- while (! (getline(line, sizeof(line), fpw))) {
++ while (! (ap_getline(line, sizeof(line), fpw))) {
+ char *colon;
+
+ if ((line[0] == '#') || (line[0] == '\0')) {
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/apache1/apache1.spec?r1=1.208&r2=1.209&f=u
More information about the pld-cvs-commit
mailing list