apache.patch 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. --- apache_1.3.31/configure.orig Tue May 21 14:24:59 2002
  2. +++ apache_1.3.31/configure Mon Feb 10 11:08:40 2003
  3. @@ -1216,10 +1216,10 @@
  4. ## or we cannot support the case where the relative
  5. ## path is just the emtpy one, i.e. ""]
  6. ##
  7. -runtimedir_relative=`echo $runtimedir | sed -e "s:^$prefix/*::" -e 's:\(.\)$:\1/:'`
  8. -logfiledir_relative=`echo $logfiledir | sed -e "s:^$prefix/*::" -e 's:\(.\)$:\1/:'`
  9. -sysconfdir_relative=`echo $sysconfdir | sed -e "s:^$prefix/*::" -e 's:\(.\)$:\1/:'`
  10. -libexecdir_relative=`echo $libexecdir | sed -e "s:^$prefix/*::" -e 's:\(.\)$:\1/:'`
  11. +runtimedir_relative="$runtimedir/"
  12. +logfiledir_relative="$logfiledir/"
  13. +sysconfdir_relative="$sysconfdir/"
  14. +libexecdir_relative="$libexecdir/"
  15. ##
  16. ## check and debug
  17. --- apache_1.3.31/src/Configure.dist 2003-06-11 11:59:51.000000000 +0200
  18. +++ apache_1.3.31/src/Configure 2003-06-11 12:46:14.000000000 +0200
  19. @@ -1190,14 +1190,20 @@
  20. SHLIB_SUFFIX_DEPTH=0
  21. ;;
  22. *-solaris2*)
  23. - if [ "x`$CC -v 2>&1 | grep gcc`" != "x" ]; then
  24. - CFLAGS_SHLIB="-fPIC"
  25. - else
  26. - CFLAGS_SHLIB="-KPIC"
  27. - fi
  28. + CFLAGS_SHLIB="-KPIC"
  29. LDFLAGS_SHLIB="-G"
  30. - LDFLAGS_MOD_SHLIB=$LDFLAGS_SHLIB
  31. LDFLAGS_SHLIB_EXPORT=""
  32. + for word in `$CC -v 2>&1` ; do
  33. + case $word in
  34. + --with-gnu-ld)
  35. + LDFLAGS_SHLIB="-shared"
  36. + ;;
  37. + *gcc*)
  38. + CFLAGS_SHLIB="-fPIC"
  39. + ;;
  40. + esac
  41. + done
  42. + LDFLAGS_MOD_SHLIB=$LDFLAGS_SHLIB
  43. SHLIB_SUFFIX_DEPTH=1
  44. ;;
  45. *-sunos4*)
  46. --- apache_1.3.31/src/main/util_script.c.orig Mon Jul 28 17:13:56 2003
  47. +++ apache_1.3.31/src/main/util_script.c Tue Jul 29 15:55:27 2003
  48. @@ -246,6 +246,7 @@
  49. }
  50. }
  51. + if (!(env_path = ap_pstrdup(r->pool, ap_table_get(r->subprocess_env, "PATH"))))
  52. if (!(env_path = ap_pstrdup(r->pool, getenv("PATH")))) {
  53. env_path = DEFAULT_PATH;
  54. }
  55. ===================================================================
  56. SA-2004.029-apache CAN-2004-0492
  57. RCS file: /home/cvspublic/apache-1.3/src/modules/proxy/proxy_http.c,v
  58. retrieving revision 1.106
  59. retrieving revision 1.107
  60. diff -u -r1.106 -r1.107
  61. --- apache_1.3.31/src/modules/proxy/proxy_http.c 2004/03/29 17:47:15 1.106
  62. +++ apache_1.3.31/src/modules/proxy/proxy_http.c 2004/06/11 07:54:38 1.107
  63. @@ -485,6 +485,13 @@
  64. content_length = ap_table_get(resp_hdrs, "Content-Length");
  65. if (content_length != NULL) {
  66. c->len = ap_strtol(content_length, NULL, 10);
  67. +
  68. + if (c->len < 0) {
  69. + ap_kill_timeout(r);
  70. + return ap_proxyerror(r, HTTP_BAD_GATEWAY, ap_pstrcat(r->pool,
  71. + "Invalid Content-Length from remote server",
  72. + NULL));
  73. + }
  74. }
  75. }
  76. Index: apache_1.3.31/src/Configure
  77. --- apache_1.3.31/src/Configure.orig 2004-07-26 14:20:53 +0200
  78. +++ apache_1.3.31/src/Configure 2004-07-26 14:41:24 +0200
  79. @@ -1867,27 +1867,12 @@
  80. # set the default, based on whether expat-lite is bundled. if it is present,
  81. # then we can always include expat.
  82. if [ "x$RULE_EXPAT" = "xdefault" ]; then
  83. - if [ -d ./lib/expat-lite/ ]; then
  84. - RULE_EXPAT=yes
  85. - else
  86. - RULE_EXPAT=no
  87. - fi
  88. + RULE_EXPAT=no
  89. fi
  90. if [ "x$RULE_EXPAT" = "xyes" ]; then
  91. - if ./helpers/TestCompile lib expat; then
  92. - echo " + using system Expat"
  93. - LIBS="$LIBS -lexpat"
  94. - else
  95. - if [ ! -d ./lib/expat-lite/ ]; then
  96. - echo "ERROR: RULE_EXPAT set to \"yes\" but is not available."
  97. - exit 1
  98. - fi
  99. - echo " + using builtin Expat"
  100. - EXPATLIB="lib/expat-lite/libexpat.a"
  101. - APLIBDIRS="expat-lite $APLIBDIRS"
  102. - CFLAGS="$CFLAGS -DUSE_EXPAT -I\$(SRCDIR)/lib/expat-lite"
  103. - fi
  104. + echo " + using system Expat"
  105. + LIBS="$LIBS -lexpat"
  106. fi
  107. ####################################################################