Commit Graph

50 Commits

Author SHA1 Message Date
d79b514c4b Fix spelling in comments and text files.
No functional change.
PR 59990


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756038 13f79535-47bb-0310-9956-ffa450edef68
2016-08-11 19:50:02 +00:00
6931dd5bd9 Fix comment typo
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1745864 13f79535-47bb-0310-9956-ffa450edef68
2016-05-28 10:45:53 +00:00
d48dfdec16 Fix segfault with logresolve -c and IPv6
Due to a logic error, there could be a NULL pointer dereference.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823259


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1745863 13f79535-47bb-0310-9956-ffa450edef68
2016-05-28 10:45:18 +00:00
01d13ed57b Silence a sparse warning about inconsistent indenting + some minor style issues
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1700338 13f79535-47bb-0310-9956-ffa450edef68
2015-08-31 20:46:23 +00:00
4e0a7dc320 Increase the max line length from 2k to 128k and allocate the buffer on the
heap.

Every log line has an URL and one or more HTTP headers. Each can be 8k long.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1185119 13f79535-47bb-0310-9956-ffa450edef68
2011-10-17 12:16:59 +00:00
238e2c742a Specify a pool for cache with apr_hash_pool_get instead of describing "pool" directly
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@780170 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30 03:36:32 +00:00
44518b82f6 Remove the conditional for APR >= 1.3.
httpd 2.3 has needed APR 1.3 or later since r582069.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@778778 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 15:57:51 +00:00
0970a449ca Make pline a child of main pool.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@778761 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 15:42:15 +00:00
e23794e12c Fix a memory leak by freeing the memory every line.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@778448 13f79535-47bb-0310-9956-ffa450edef68
2009-05-25 16:06:03 +00:00
e3b286f32f Kill the hardcoded values
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@778433 13f79535-47bb-0310-9956-ffa450edef68
2009-05-25 14:48:38 +00:00
61a375c88a Declare the local variables in the more inner scope.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@778431 13f79535-47bb-0310-9956-ffa450edef68
2009-05-25 14:40:15 +00:00
a64da7de52 Kill the hardcoded values
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@776290 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19 12:26:14 +00:00
6c1e68ec7c * support/logresolve.c (main): Simplify to avoid conditionals in handling
of lines without spaces: ensure a newline is printed for the cache-hit
path and fix a crash in apr_file_printf for the cache-miss path.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@515565 13f79535-47bb-0310-9956-ffa450edef68
2007-03-07 13:44:15 +00:00
adbe937011 Fix near-identical potential NULL pointer dereferences, as found by
Jorton and corrected in r514915


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@514954 13f79535-47bb-0310-9956-ffa450edef68
2007-03-06 02:00:18 +00:00
9c70c93e8a Prevent format specifier busting.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@514953 13f79535-47bb-0310-9956-ffa450edef68
2007-03-06 01:56:17 +00:00
ee6e2136c2 Correct a spurious access to whatever memory is at location "1" in the
cirumstance where a log line is of the form "nn.nn.nn.nn ". 


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@514952 13f79535-47bb-0310-9956-ffa450edef68
2007-03-06 01:54:20 +00:00
7fb58912ef correct some indentation, no functional changes
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@514949 13f79535-47bb-0310-9956-ffa450edef68
2007-03-06 01:40:23 +00:00
d6ab98da93 * support/logresolve.c (main): Fix potential NULL pointer dereference,
found by Coverity analysis tool.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@514915 13f79535-47bb-0310-9956-ffa450edef68
2007-03-05 23:21:31 +00:00
de659cbed0 update license header text
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@420983 13f79535-47bb-0310-9956-ffa450edef68
2006-07-11 20:33:53 +00:00
dd95d7c37c Update the copyright year in all .c, .h and .xml files
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@395228 13f79535-47bb-0310-9956-ffa450edef68
2006-04-19 12:11:27 +00:00
b72e610410 No functional change: more indenting/formatting changes due to
tabbing


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@332316 13f79535-47bb-0310-9956-ffa450edef68
2005-11-10 16:03:23 +00:00
5061d9fa92 No functional Change: Removing trailing whitespace. This also
means that "blank" lines consisting of just spaces or
tabs are now really blank lines


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@332306 13f79535-47bb-0310-9956-ffa450edef68
2005-11-10 15:11:44 +00:00
5d2fae4818 No functional change: simple detabbing of indented code.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@332305 13f79535-47bb-0310-9956-ffa450edef68
2005-11-10 15:05:51 +00:00
f8ee6a0da2 Logresolve style and nit fix-ups:
* Remove some redundant whitespace in variable declarations. 
   * Add some whitespace for clarity around an if and a while statement. 
   * Remove redundant and unneccessary casts
   * Use APR_HASH_KEY_STRING



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@328048 13f79535-47bb-0310-9956-ffa450edef68
2005-10-24 12:18:54 +00:00
811b2867ab A complete rewrite of support/logresolve.c:
* Now uses APR
    * Supports IPv6 addresses
    * Slighty less hurtful on memory
    * archaic (but interesting) notes marked as historical
    * Will not perform very well without APR >= 1.3 due to
      lack of buffered file-io.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@327909 13f79535-47bb-0310-9956-ffa450edef68
2005-10-24 01:52:56 +00:00
6905d3d9d5 Allow httpd on NetWare to build using either the standard socket libraries or the Winsock libraries.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@161368 13f79535-47bb-0310-9956-ffa450edef68
2005-04-14 23:42:21 +00:00
905cdf9f0b Update copyright year to 2005 and standardize on current copyright owner line.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@151408 13f79535-47bb-0310-9956-ffa450edef68
2005-02-04 20:28:49 +00:00
1db6e020f1 logresolve: Allow size of log line buffer to be overridden at
build time (MAXLINE).

PR:          27793


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103060 13f79535-47bb-0310-9956-ffa450edef68
2004-03-21 11:13:13 +00:00
eeb57c17ad fix name of The Apache Software Foundation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102619 13f79535-47bb-0310-9956-ffa450edef68
2004-02-09 20:40:53 +00:00
c0dcb76491 fix copyright dates according the first cehck in
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102592 13f79535-47bb-0310-9956-ffa450edef68
2004-02-08 14:14:53 +00:00
4f02cb1e18 apply Apache License, Version 2.0
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102525 13f79535-47bb-0310-9956-ffa450edef68
2004-02-06 22:58:42 +00:00
ad89dca474 * support/logresolve.c (strdup): Remove, APR already
provides this if necessary.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101704 13f79535-47bb-0310-9956-ffa450edef68
2003-11-05 17:21:56 +00:00
bc9f1dba49 Fix up the log resolve utility to work with NetWare. Increased the stack size
and fixed WSAStartup to use the correct version number


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98984 13f79535-47bb-0310-9956-ffa450edef68
2003-03-11 19:11:17 +00:00
0f0550b08c avoid colliding with getline() as defined by glibc
(it breaks if you need to turn on _GNU_SOURCE)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95035 13f79535-47bb-0310-9956-ffa450edef68
2002-05-10 18:20:29 +00:00
43e6833734 * configure.in: added Cygwin specific APR_SETVARs.
* os/config.m4: added Cygwin specific values for $OS and $OS_DIR.
    $OS_DIR will change to "cygwin" as soon as I get the DSO/DLL things
    clean as with 1.3.20.

  * support/logresolve.c: added OS specific #ifdef statement to define
    h_errno as extern __declspec(dllimport); it's imported from the
    cygwin1.dll itself.

Submitted by: Stipe Tolj <tolj@wapme-systems.de>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90805 13f79535-47bb-0310-9956-ffa450edef68
2001-08-30 05:52:25 +00:00
88d3406f9a renaming various functions for consistency sake
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88019 13f79535-47bb-0310-9956-ffa450edef68
2001-02-08 07:45:33 +00:00
00ec6af4a5 Cleanups so that the support programs build cleanly. The Win32 values
need to be sanity checked.
Submitted by:	Cliff Woolley <cliffwoolley@yahoo.com>
Reviewed by:	Ryan Bloom


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87506 13f79535-47bb-0310-9956-ffa450edef68
2000-12-22 00:02:52 +00:00
c2239e78bd All the supports now build on APR (+APRUTIL), no reliance on httpd.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87501 13f79535-47bb-0310-9956-ffa450edef68
2000-12-21 21:00:45 +00:00
7252673933 This should build entirely with APR support.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87500 13f79535-47bb-0310-9956-ffa450edef68
2000-12-21 20:33:50 +00:00
93bdf51d34 Get rid of some warnings on Solaris 8 by using APR's ctype macros:
logresolve.c: In function `main':
logresolve.c:327: warning: subscript has type `char'
ab.c: In function `main':
ab.c:1074: warning: subscript has type `char'
ab.c:1087: warning: subscript has type `char'


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86793 13f79535-47bb-0310-9956-ffa450edef68
2000-11-02 02:12:34 +00:00
059d8dd212 prefix libapr functions and types with apr_
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85976 13f79535-47bb-0310-9956-ffa450edef68
2000-08-02 05:27:38 +00:00
a9746375cf Get the ap_config.h cleanup working on FreeBSD by adding includes of
additional system headers.

A platform check in logresolve.c to determine whether or not we include
<arpa/inet.h> was converted to a feature check.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85567 13f79535-47bb-0310-9956-ffa450edef68
2000-06-13 21:36:18 +00:00
750d8cc03c Protect system header files with the appropriate macros.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85558 13f79535-47bb-0310-9956-ffa450edef68
2000-06-12 23:03:05 +00:00
580852da85 Clean up a big chunk of ap_config.h. This basically stops ap_config.h from
including any files.  Because of this change, other files must include
their own headers.  I also cleaned up a couple of other bugs in some
modules because I had to compile them all.

I expect this to break multiple platforms, but this will be fixed over time.
The massive configure cleanup is almost done.  I will go through the files
one more time after this commit.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85553 13f79535-47bb-0310-9956-ffa450edef68
2000-06-12 21:47:17 +00:00
fdd1a286e9 Fix some compile breaks in the support directory. These have not been
tested, but they do compile at least.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85054 13f79535-47bb-0310-9956-ffa450edef68
2000-04-27 04:22:57 +00:00
6b3fd8e36c Some Windows tweaks from William Rowe...
Submitted by:	William Rowe


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85034 13f79535-47bb-0310-9956-ffa450edef68
2000-04-25 21:18:04 +00:00
50c3f704fb Missed this one when I was making the support programs compile on
BeOS.  All should now compile on "vanilla" BeOS.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84014 13f79535-47bb-0310-9956-ffa450edef68
1999-10-20 23:11:48 +00:00
a9c5b29052 These changes allow the support programs to compile on BeOS.
The biggest change is in ab.c where the functions that BeOS needs that
aren't the standard format are hidden behind a new ab_* define.  Tested
on FreeBSD and BeOS.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83964 13f79535-47bb-0310-9956-ffa450edef68
1999-10-11 20:25:08 +00:00
c37f14ddf3 Changed pools to contexts. Tested with prefork and pthread mpm's. I'll
check this out tomorrow and make sure everything was checked in correctly.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83852 13f79535-47bb-0310-9956-ffa450edef68
1999-08-31 05:35:52 +00:00
6f96ad5227 Apache 1.3.9 baseline for the Apache 2.0 repository.
Obtained from: Apache 1.3.9 (minus unused files), tag APACHE_1_3_9
Submitted by: Apache Group


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83750 13f79535-47bb-0310-9956-ffa450edef68
1999-08-24 06:46:03 +00:00