cvs commit: apache/src http_core.c

1997-07-31 Thread Dean Gaudet
dgaudet 97/07/31 00:51:36

  Modified:src   http_core.c
  Log:
  Fix a null deref, and improper status update in the double reverse code.
  
  Revision  ChangesPath
  1.103 +30 -16apache/src/http_core.c
  
  Index: http_core.c
  ===
  RCS file: /export/home/cvs/apache/src/http_core.c,v
  retrieving revision 1.102
  retrieving revision 1.103
  diff -u -r1.102 -r1.103
  --- http_core.c   1997/07/30 18:41:51 1.102
  +++ http_core.c   1997/07/31 07:51:34 1.103
  @@ -335,6 +335,11 @@
/* already done */
return;
   }
  +if (conn-remote_host == NULL || conn-remote_host[0] == '\0') {
  + /* single reverse failed, so don't bother */
  + conn-double_reverse = -1;
  + return;
  +}
   hptr = gethostbyname(conn-remote_host);
   if (hptr) {
for (haddr = hptr-h_addr_list; *haddr; haddr++) {
  @@ -355,20 +360,28 @@
   {
   struct in_addr *iaddr;
   struct hostent *hptr;
  -core_dir_config *dir_conf = NULL;
  +int hostname_lookups;
  +#ifdef STATUS
  +int old_stat = SERVER_UNKNOWN;
  +#endif
   
  -/* If we haven't checked the host name, and we want to */
  -if (dir_config) 
  - dir_conf = (core_dir_config *)get_module_config(dir_config, 
core_module);
  +/* If we haven't checked the host name, and we want to */
  +if (dir_config) {
  + hostname_lookups =
  + ((core_dir_config *)get_module_config(dir_config, core_module))
  + -hostname_lookups;
  +} else {
  + /* the default */
  + hostname_lookups = HOSTNAME_LOOKUP_OFF;
  +}
   
  -   if ((!dir_conf) || (type != REMOTE_NOLOOKUP  conn-remote_host == NULL
  +if (type != REMOTE_NOLOOKUP
  +  conn-remote_host == NULL
 (type == REMOTE_DOUBLE_REV
  - || dir_conf-hostname_lookups != HOSTNAME_LOOKUP_OFF)))
  -{
  + || hostname_lookups != HOSTNAME_LOOKUP_OFF)) {
   #ifdef STATUS
  - int old_stat = update_child_status(conn-child_num,
  - SERVER_BUSY_DNS,
  - (request_rec*)NULL);
  + old_stat = update_child_status(conn-child_num, SERVER_BUSY_DNS,
  + (request_rec*)NULL);
   #endif /* STATUS */
iaddr = (conn-remote_addr.sin_addr);
hptr = gethostbyaddr((char *)iaddr, sizeof(struct in_addr), AF_INET);
  @@ -376,19 +389,15 @@
conn-remote_host = pstrdup(conn-pool, (void *)hptr-h_name);
str_tolower (conn-remote_host);
   
  - if (dir_conf
  -  dir_conf-hostname_lookups == HOSTNAME_LOOKUP_DOUBLE) {
  + if (hostname_lookups == HOSTNAME_LOOKUP_DOUBLE) {
do_double_reverse (conn);
if (conn-double_reverse != 1) {
conn-remote_host = NULL;
}
}
}
  -/* if failed, set it to the NULL string to indicate error */
  + /* if failed, set it to the NULL string to indicate error */
if (conn-remote_host == NULL) conn-remote_host = ;
  -#ifdef STATUS
  - (void)update_child_status(conn-child_num,old_stat,(request_rec*)NULL);
  -#endif /* STATUS */
   }
   if (type == REMOTE_DOUBLE_REV) {
do_double_reverse (conn);
  @@ -396,6 +405,11 @@
return NULL;
}
   }
  +#ifdef STATUS
  +if (old_stat != SERVER_UNKNOWN) {
  + (void)update_child_status(conn-child_num,old_stat,(request_rec*)NULL);
  +}
  +#endif /* STATUS */
   
   /*
* Return the desired information; either the remote DNS name, if found,
  
  
  


cvs commit: apache/src CHANGES mod_auth_anon.c

1997-07-31 Thread Ralf S. Engelschall
rse 97/07/31 01:29:45

  Modified:src   Tag: APACHE_1_2_X  CHANGES mod_auth_anon.c
  Log:
  mod_auth_anon logs multiple times
  
  PR:   421, 868
  Submitted by: Dean Gaudet
  Reviewed by:  Ralf S. Engelschall, Dirk v.Gulik, Ken Coar, Jim Jagielski
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.286.2.35 +3 -0  apache/src/CHANGES
  
  Index: CHANGES
  ===
  RCS file: /export/home/cvs/apache/src/CHANGES,v
  retrieving revision 1.286.2.34
  retrieving revision 1.286.2.35
  diff -u -r1.286.2.34 -r1.286.2.35
  --- CHANGES   1997/07/31 08:19:47 1.286.2.34
  +++ CHANGES   1997/07/31 08:29:41 1.286.2.35
  @@ -1,5 +1,8 @@
   Changes with Apache 1.2.2
   
  +  *) Anonymous_LogEmail was logging on each subrequest.
  + [Dean Gaudet] PR#421, PR#868
  +
 *) force-response-1.0 now only applies to requests which are HTTP/1.0 to
begin with.  nokeepalive now works for HTTP/1.1 clients.  Added
downgrade-1.0 which causes Apache to pretend it received a 1.0.
  
  
  
  1.15.2.1  +1 -1  apache/src/mod_auth_anon.c
  
  Index: mod_auth_anon.c
  ===
  RCS file: /export/home/cvs/apache/src/mod_auth_anon.c,v
  retrieving revision 1.15
  retrieving revision 1.15.2.1
  diff -u -r1.15 -r1.15.2.1
  --- mod_auth_anon.c   1997/03/19 03:12:52 1.15
  +++ mod_auth_anon.c   1997/07/31 08:29:42 1.15.2.1
  @@ -239,7 +239,7 @@
  (strpbrk(.,send_pw) != NULL))
  ) 
) {
  -  if (sec-auth_anon_logemail) {
  +  if (sec-auth_anon_logemail  r-prev == NULL  r-main == NULL) {
ap_snprintf(errstr, sizeof(errstr), Anonymous: Passwd %s Accepted, 
send_pw ? send_pw : \'none\');
log_error (errstr, r-server );
  
  
  


cvs commit: apache/src CHANGES mod_rewrite.c mod_rewrite.h

1997-07-31 Thread Ralf S. Engelschall
rse 97/07/31 01:43:20

  Modified:src   Tag: APACHE_1_2_X  CHANGES mod_rewrite.c
mod_rewrite.h
  Log:
  Final sync of mod_rewrite for Apache 1.2.2:
o added diff between mod_rewrite 3.0.6+ and 3.0.9
  minus WIN32/NT stuff, but plus copyright removement.
  In detail:
  - workaround for detecting infinite rewriting loops
  - fixed setting of env vars when - is used as subst string
  - fixed forced response code on redirects (PR#777)
  - fixed cases where r-args is 
  - kludge to disable locking on pipes under braindead SunOS
  - fix for rewritelog in cases where remote hostname is unknown
  - fixed totally damaged request_rec walk-back loop
o remove static from local data and add static to global ones.
o replaced ugly proxy finding stuff by simple
  find_linked_module(mod_proxy) call.
o added missing negation char on rewritelog()
o fixed a few comment typos
  
  PR: 777
  Submitted by:   Ralf S. Engelschall
  Reviewed by:Jim Jagielski, Randy Terbush, Ralf S. Engelschall
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.286.2.36 +19 -0 apache/src/CHANGES
  
  Index: CHANGES
  ===
  RCS file: /export/home/cvs/apache/src/CHANGES,v
  retrieving revision 1.286.2.35
  retrieving revision 1.286.2.36
  diff -u -r1.286.2.35 -r1.286.2.36
  --- CHANGES   1997/07/31 08:29:41 1.286.2.35
  +++ CHANGES   1997/07/31 08:43:13 1.286.2.36
  @@ -1,5 +1,24 @@
   Changes with Apache 1.2.2
   
  +  *) Last official synchonisation of mod_rewrite with author version (because
  + mod_rewrite is now directly developed by the author at the Apache 
Group):
  + o added diff between mod_rewrite 3.0.6+ and 3.0.9
  +   minus WIN32/NT stuff, but plus copyright removement.
  +   In detail:
  +   - workaround for detecting infinite rewriting loops
  +   - fixed setting of env vars when - is used as subst string
  +   - fixed forced response code on redirects (PR#777)
  +   - fixed cases where r-args is 
  +   - kludge to disable locking on pipes under braindead SunOS
  +   - fix for rewritelog in cases where remote hostname is unknown
  +   - fixed totally damaged request_rec walk-back loop
  + o remove static from local data and add static to global ones.
  + o replaced ugly proxy finding stuff by simple
  +   find_linked_module(mod_proxy) call.
  + o added missing negation char on rewritelog()
  + o fixed a few comment typos
  + [Ralf S. Engelschall]
  +
 *) Anonymous_LogEmail was logging on each subrequest.
[Dean Gaudet] PR#421, PR#868
   
  
  
  
  1.28.2.2  +72 -43apache/src/mod_rewrite.c
  
  Index: mod_rewrite.c
  ===
  RCS file: /export/home/cvs/apache/src/mod_rewrite.c,v
  retrieving revision 1.28.2.1
  retrieving revision 1.28.2.2
  diff -u -r1.28.2.1 -r1.28.2.2
  --- mod_rewrite.c 1997/06/27 02:26:30 1.28.2.1
  +++ mod_rewrite.c 1997/07/31 08:43:15 1.28.2.2
  @@ -52,16 +52,14 @@
*/
   
   
  -/*
  -**  mod_rewrite.c -- The Main Module Code
  -**   __ _ 
  +/*   __ _ 
   **   _ __ ___   ___   __| |_ __ _  ___ __(_) |_ ___ 
   **  | '_ ` _ \ / _ \ / _` |   | '__/ _ \ \ /\ / / '__| | __/ _ \
   **  | | | | | | (_) | (_| |   | | |  __/\ V  V /| |  | | ||  __/
   **  |_| |_| |_|\___/ \__,_|___|_|  \___| \_/\_/ |_|  |_|\__\___|
   **   |_|
   **
  -**  URL Rewriting Module, Version 3.0.6 (15-Jun-1997)
  +**  URL Rewriting Module
   **
   **  This module uses a rule-based rewriting engine (based on a
   **  regular-expression parser) to rewrite requested URLs on the fly. 
  @@ -78,12 +76,9 @@
   **  can lead to internal subprocessing, external request redirection or even
   **  to internal proxy throughput.
   **
  -**  The documentation and latest release can be found on
  -**  http://www.engelschall.com/sw/mod_rewrite/
  -**
  -**  Copyright (c) 1996-1997 Ralf S. Engelschall, All rights reserved.
  +**  This module was originally written in April 1996 and 
  +**  gifted exclusively to the The Apache Group in July 1997 by
   **
  -**  Written for The Apache Group by
   **  Ralf S. Engelschall
   **  [EMAIL PROTECTED]
   **  www.engelschall.com
  @@ -219,7 +214,7 @@
   };
   
   /* the cache */
  -cache *cachep;
  +static cache *cachep;
   
   /* whether proxy module is available or not */
   static int proxy_available;
  @@ -1114,6 +1109,7 @@
   char *prefix;
   int l;
   int n;
  +char *ofilename;
   
   dconf = (rewrite_perdir_conf *)get_module_config(r-per_dir_config, 
rewrite_module);
   
  @@ -1147,6 +1143,13 @@
   }
   
   /*
  + *  remember the 

cvs commit: apache/src CHANGES mod_include.c

1997-07-31 Thread Ralf S. Engelschall
rse 97/07/31 01:50:05

  Modified:src   Tag: APACHE_1_2_X  CHANGES mod_include.c
  Log:
  handle_else was being used to handle endif.
  
  Submitted by: Howard Fear
  Reviewed by:  Ralf S. Engelschall, Jim Jagielski, Randy Terbush
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.286.2.37 +4 -0  apache/src/CHANGES
  
  Index: CHANGES
  ===
  RCS file: /export/home/cvs/apache/src/CHANGES,v
  retrieving revision 1.286.2.36
  retrieving revision 1.286.2.37
  diff -u -r1.286.2.36 -r1.286.2.37
  --- CHANGES   1997/07/31 08:43:13 1.286.2.36
  +++ CHANGES   1997/07/31 08:50:01 1.286.2.37
  @@ -1,5 +1,9 @@
   Changes with Apache 1.2.2
   
  +  *) mod_include cleanup showed that handle_else was being used to handle
  + endif.  It didn't cause problems, but it was cleaned up too.
  + [Howard Fear]
  +
 *) Last official synchonisation of mod_rewrite with author version (because
mod_rewrite is now directly developed by the author at the Apache 
Group):
o added diff between mod_rewrite 3.0.6+ and 3.0.9
  
  
  
  1.33.2.5  +2 -2  apache/src/mod_include.c
  
  Index: mod_include.c
  ===
  RCS file: /export/home/cvs/apache/src/mod_include.c,v
  retrieving revision 1.33.2.4
  retrieving revision 1.33.2.5
  diff -u -r1.33.2.4 -r1.33.2.5
  --- mod_include.c 1997/07/20 18:24:25 1.33.2.4
  +++ mod_include.c 1997/07/31 08:50:02 1.33.2.5
  @@ -1589,6 +1589,7 @@
   #ifdef DEBUG_INCLUDE
   rvputs(r, endif conditional_status=\, *conditional_status ? 1 : 
0, \\n, NULL);
   #endif
  +*printing = 1;
   *conditional_status = 1;
   return 0;
   } else {
  @@ -1704,8 +1705,7 @@
   continue;
   } else if(!strcmp(directive,endif)) {
   if (!if_nesting) {
  -ret=handle_else(f, r, error, conditional_status, 
printing);
  -printing = 1;
  +ret = handle_endif(f, r, error, conditional_status, 
printing);
   } else {
   if_nesting--;
   }
  
  
  


cvs commit: apache/src buff.c

1997-07-31 Thread Dean Gaudet
dgaudet 97/07/31 02:10:30

  Modified:src   buff.c
  Log:
  Improve the heuristic for deciding when to use writev() vs. when to
  copy into the buffer.  No sense copying if the copy would fill
  the buffer, might as well writev and start a fresh buffer.
  
  Revision  ChangesPath
  1.40  +1 -1  apache/src/buff.c
  
  Index: buff.c
  ===
  RCS file: /export/home/cvs/apache/src/buff.c,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- buff.c1997/07/29 06:52:26 1.39
  +++ buff.c1997/07/31 09:10:29 1.40
  @@ -1005,7 +1005,7 @@
* Detect case where we're asked to write a large buffer, and combine our
* current buffer with it in a single writev()
*/
  -if (fb-outcnt  0  nbyte = fb-bufsiz) {
  +if (fb-outcnt  0  nbyte + fb-outcnt = fb-bufsiz) {
return large_write (fb, buf, nbyte);
   }
   #endif
  
  
  


cvs commit: apache-devsite devnotes.html

1997-07-31 Thread Ralf S. Engelschall
rse 97/07/31 08:52:28

  Modified:. devnotes.html
  Log:
  fixed typo and added more details on how to access the repository over SSH.
  
  Revision  ChangesPath
  1.3   +8 -5  apache-devsite/devnotes.html
  
  Index: devnotes.html
  ===
  RCS file: /export/home/cvs/apache-devsite/devnotes.html,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- devnotes.html 1997/07/15 11:14:27 1.2
  +++ devnotes.html 1997/07/31 15:52:27 1.3
  @@ -223,7 +223,7 @@
   /DL
   /P
   P
  -Adjust the lasat two paths to correctly reflect the locations of
  +Adjust the last two paths to correctly reflect the locations of
   SAMPcvs/SAMP and SAMPssh/SAMP on your local system.
   /P
  /LI
  @@ -244,10 +244,13 @@
   so you don't need to edit them.
   /P
  /LI
  -   LIGenerate and put your SAMPssh/SAMP public key file in
  -SAMP~/.ssh/authorized_keys/SAMP on the repository system.  This
  -will allow you to access the repository without having to enter a
  -passphrase for each CVS operation.
  +   LIOn your local system generate your SSH public key file 
  +SAMP~/.ssh/identity.pub/SAMP via SAMPssh-keygen/SAMP and then put
  +it in SAMP~/.ssh/authorized_keys/SAMP on the repository system.  This
  +will allow you to access the repository without having to enter a 
password
  +for each CVS operation. But make sure that you didn't enter a passphrase
  +when running SAMPssh-keygen/SAMP or you need to enter that one
  +instead of the password (which would be no gain).
  /LI
 /OL
   !--#include virtual=footer.html --
  
  
  


cvs commit: apache README KEYS

1997-07-31 Thread Ralf S. Engelschall
rse 97/07/31 09:28:31

  Modified:. Tag: APACHE_1_2_X  README KEYS
  Log:
  Merging in changes from HEAD.
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.8.2.1   +4 -4  apache/README
  
  Index: README
  ===
  RCS file: /export/home/cvs/apache/README,v
  retrieving revision 1.8
  retrieving revision 1.8.2.1
  diff -u -r1.8 -r1.8.2.1
  --- README1996/12/01 05:38:15 1.8
  +++ README1997/07/31 16:28:30 1.8.2.1
  @@ -62,12 +62,12 @@
   
   Details of the latest version are in the apache project page (above).
   
  -Licencing
  +Licensing
   -
   
   Please see the file called LICENSE.
   
  -Acknowledgements
  +Acknowledgments
   
   
   We wish to acknowledge the following copyrighted works that make up
  @@ -78,8 +78,8 @@
   Urbana-Champaign.
   
   This software contains code derived from the RSA Data Security Inc. MD5
  -Message-Diest Algorithm, including various modifications by Spyglass Inc.,
  -Caregie Mellon University, and Bell Communications Research, Inc. 
  +Message-Digest Algorithm, including various modifications by Spyglass Inc.,
  +Carnegie Mellon University, and Bell Communications Research, Inc. 
   (Bellcore).
   
   This package contains software written and copyrighted by Henry Spencer. 
  
  
  
  1.9.2.1   +16 -0 apache/KEYS
  
  Index: KEYS
  ===
  RCS file: /export/home/cvs/apache/KEYS,v
  retrieving revision 1.9
  retrieving revision 1.9.2.1
  diff -u -r1.9 -r1.9.2.1
  --- KEYS  1997/06/05 17:02:12 1.9
  +++ KEYS  1997/07/31 16:28:30 1.9.2.1
  @@ -169,3 +169,19 @@
   =vUdL
   -END PGP PUBLIC KEY BLOCK-
   
  +Type Bits/KeyIDDate   User ID
  +pub  1024/26BB437D 1997/04/28 Ralf S. Engelschall [EMAIL PROTECTED]
  +
  +-BEGIN PGP PUBLIC KEY BLOCK-
  +Version: 2.6.3ia
  +
  +mQCNAzNko/QAAAEEANZ2kpN/oMkz4tqzxvKPZws/XwsD0Y+E5/y7P2DIw4uHS/4N
  +syQbgkdrZhPBlXDv68DQioHXWsb904qyr7iZB1LC5ItK9MgqlK+Z2mvPqsGbHM8J
  ++oYib8kf2zJ6HvrYrP7NYB0tN9YYum2ICtx+hIi6aKGXdB1ATA5erwYmu0N9AAUR
  +tClSYWxmIFMuIEVuZ2Vsc2NoYWxsIDxyc2VAZW5nZWxzY2hhbGwuY29tPokAlQMF
  +EDNko/QOXq8GJrtDfQEBKVoD/2K/+4pcwhxok+FkuLwC5Pnuh/1oeOYHiKYwx0Z3
  +p09RLvDtNldr6VD+aL9JltxdPTARzZ8M50UqoF9jMr25GifheFYhilww41OVZA3e
  +cLXlLgda1+t0vWs3Eg/i2b0arQQDaIq7PeRdjdEDgwnG4xBaqaAqfgxwOXJ+LPWF
  +hiXZ
  +=K7lL
  +-END PGP PUBLIC KEY BLOCK-
  
  
  


cvs commit: apache-site/contributors index.html

1997-07-31 Thread Rodent of Unusual Size
coar97/07/31 12:44:52

  Modified:contributors  index.html
  Log:
Update my contributions minorly.
  
  Revision  ChangesPath
  1.14  +7 -4  apache-site/contributors/index.html
  
  Index: index.html
  ===
  RCS file: /export/home/cvs/apache-site/contributors/index.html,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- index.html1997/07/20 01:20:12 1.13
  +++ index.html1997/07/31 19:44:50 1.14
  @@ -25,7 +25,8 @@
   /TR
   TR
TDBA HREF=#coarKen Coar/A/B/TD
  - TDHTML pedant, FAQ editor, UI perfectionist/TD
  + TDHTML pedant, FAQ editor, UI perfectionist, bugdb script
  + hacker/TD
   /TR
   TR
TDBA HREF=#coxMark Cox/A/B/TD
  @@ -151,11 +152,13 @@
   BOrganization:/B A HREF=http://www.process.com/;Process Software 
Corporation/ABR
   BOccupation:/B Principal Software EngineerBR
   BLocation:/B Mostly in New England, USABR
  -BComments:/B HTML pedant, FAQ editor, UI perfectionistBR
  +BComments:/B HTML pedant, FAQ editor, UI perfectionist, bugdb script
  + hackerBR
   BOS Expertise:/B Digital UNIX, OpenVMSBR
   BContributions:/B
  - Author of the 1.2 example API module, moderately updated FAQ,
  - various minor bug fixes and documentation corrections.  Eminently
  + The 1.2 example API module, moderately updated FAQ,
  + mod_autoindex enhancements, various minor bug fixes and
  + documentation corrections.  Eminently 
capable of writing code that will Rule The World by consuming
resources - but in an elegant way.
   P
  
  
  


cvs commit: apache/htdocs/manual/mod mod_rewrite.html

1997-07-31 Thread Ralf S. Engelschall
rse 97/07/31 14:23:12

  Modified:htdocs/manual/mod  mod_rewrite.html
  Log:
  Bring mod_rewrite documentation up-to-date with recent source upgrade.
  
  Revision  ChangesPath
  1.13  +97 -35apache/htdocs/manual/mod/mod_rewrite.html
  
  Index: mod_rewrite.html
  ===
  RCS file: /export/home/cvs/apache/htdocs/manual/mod/mod_rewrite.html,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- mod_rewrite.html  1997/07/06 17:19:18 1.12
  +++ mod_rewrite.html  1997/07/31 21:23:11 1.13
  @@ -17,7 +17,7 @@
   
   !--#include virtual=header.html --
   
  -h1 ALIGN=CENTERModule mod_rewrite (Version 3.0)/h1
  +h1 ALIGN=CENTERModule mod_rewrite/h1
   
   This module is contained in the codemod_rewrite.c/code file, with Apache
   1.2 and later.  It provides a rule-based rewriting engine to rewrite 
requested
  @@ -41,20 +41,15 @@
   substitution.
   
   p
  -It operates on the full URLs (including the PATH_INFO part) both in
  -per-server context (httpd.conf) and per-dir context (.htaccess) and even
  -can generate QUERY_STRING parts on result.   The rewritten result can lead 
to internal sub-processing, external request redirection or to internal proxy 
throughput.
  +It operates on the full URLs (including the PATH_INFO part) both in 
per-server
  +context (httpd.conf) and per-dir context (.htaccess) and even can generate
  +QUERY_STRING parts on result.   The rewritten result can lead to internal
  +sub-processing, external request redirection or to internal proxy throughput.
   
   p
  -The latest version can be found onbr
  -a href=http://www.engelschall.com/sw/mod_rewrite/;
  -codebhttp://www.engelschall.com/sw/mod_rewrite//b/code/a
  -
  -p
  -Copyright copy; 1996,1997 bThe Apache Group/b, All rights reserved.br
  -Copyright copy; 1996,1997 iRalf S. Engelschall/i, All rights reserved.
  +This module was originally written in April 1996 and 
  +gifted exclusively to the The Apache Group in July 1997 by
   p
  -Written for bThe Apache Group/b by
   blockquote
   iRalf S. Engelschall/ibr
   a href=mailto:[EMAIL PROTECTED]tt[EMAIL PROTECTED]/tt/abr
  @@ -126,7 +121,6 @@
   conditions and rules of the main server gets inherited. In per-directory
   context this means that conditions and rules of the parent directory's
   tt.htaccess/tt configuration gets inherited.
  -p
   /ul
   
   p
  @@ -146,7 +140,7 @@
   config.
   
   p
  -table width=70% border=2 bgcolor=#c0c0e0 cellspacing=0 cellpadding=10
  +table width=70% border=0 bgcolor=#f0f0f0 cellspacing=0 cellpadding=10
   trtd
   To disable the logging of rewriting actions it is not recommended
   to set emFilename/em
  @@ -160,7 +154,7 @@
   /table
   
   p
  -table width=70% border=2 bgcolor=#c0c0e0 cellspacing=0 cellpadding=10
  +table width=70% border=0 bgcolor=#fff0f0 cellspacing=0 cellpadding=10
   trtd
   SECURITY: See the a
   href=../misc/security_tips.htmlApache Security
  @@ -197,7 +191,7 @@
   This disables all rewrite action logs.
   
   p
  -table width=70% border=2 bgcolor=#c0c0e0 cellspacing=0 cellpadding=10
  +table width=70% border=0 bgcolor=#f0f0f0 cellspacing=0 cellpadding=10
   trtd
   bNotice:/b Using a high value for iLevel/i will slow down your Apache
   server dramatically! Use the rewriting logfile only for debugging or at least
  @@ -266,7 +260,7 @@
   string as in the following example:
   
   p
  -table border=2 cellspacing=1 cellpadding=5 bgcolor=#d0d0d0
  +table border=0 cellspacing=1 cellpadding=5 bgcolor=#f0f0f0
   trtdpre
   #
   #   map.real-to-user -- maps realnames to usernames
  @@ -278,7 +272,7 @@
   /table
   
   p
  -table border=2 cellspacing=1 cellpadding=5 bgcolor=#d0d0d0
  +table border=0 cellspacing=1 cellpadding=5 bgcolor=#f0f0f0
   trtdpre
   RewriteMap real-to-host txt:/path/to/file/map.real-to-user
   /pre/td/tr
  @@ -312,7 +306,7 @@
   for the given key). A trivial program which will implement a 1:1 map
   (i.e. key == value) could be:
   p
  -table border=2 cellspacing=1 cellpadding=5 bgcolor=#d0d0d0
  +table border=0 cellspacing=1 cellpadding=5 bgcolor=#f0f0f0
   trtdpre
   #!/usr/bin/perl
   $| = 1;
  @@ -345,7 +339,7 @@
   context.
   
   p
  -table width=70% border=2 bgcolor=#c0c0e0 cellspacing=0 cellpadding=10
  +table width=70% border=0 bgcolor=#f0f0f0 cellspacing=0 cellpadding=10
   trtd
   For plain text and DBM format files the looked-up keys are cached in-core
   until the ttmtime/tt of the mapfile changes or the server does a
  @@ -383,7 +377,7 @@
   directive to specify the correct URL-prefix.
   
   p
  -table width=70% border=2 bgcolor=#c0c0e0 cellspacing=0 cellpadding=10
  +table width=70% border=0 bgcolor=#fff0f0 cellspacing=0 cellpadding=10
   trtd
   So, if your webserver's URLs are bnot/b directly
   related to physical file paths, you have to use ttRewriteBase/tt in every
  @@ -399,7 +393,7 @@
  Assume the following 

cvs commit: apache/src mod_setenvif.c

1997-07-31 Thread Brian Behlendorf
brian   97/07/31 20:32:03

  Modified:src   mod_setenvif.c
  Log:
  Fix compiler warnings from -Wall.
  
  Revision  ChangesPath
  1.2   +2 -1  apache/src/mod_setenvif.c
  
  Index: mod_setenvif.c
  ===
  RCS file: /export/home/cvs/apache/src/mod_setenvif.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- mod_setenvif.c1997/07/31 20:56:24 1.1
  +++ mod_setenvif.c1997/08/01 03:32:02 1.2
  @@ -112,6 +112,7 @@
   #include httpd.h
   #include http_config.h
   #include http_core.h
  +#include http_log.h
   
   typedef struct {
   char *name;  /* header name */
  @@ -179,7 +180,7 @@
cmd-cmd-name, NULL);
return error;
   }
  -while (feature = getword_conf(cmd-pool, cmdline)) {
  +while ((feature = getword_conf(cmd-pool, cmdline))) {
beenhere++;
   
/*