You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Dean Gaudet <dg...@hyperreal.com> on 1997/06/30 03:28:31 UTC

cvs commit: apache/src CHANGES mod_auth_dbm.c

dgaudet     97/06/29 18:28:30

  Modified:    src       CHANGES mod_auth_dbm.c
  Log:
  PR#444: tweak to allow people to use netscape dbm files, enabled if
  NETSCAPE_DBM_COMPAT defined.  Why not make it easy for people to upgrade
  from netscape?
  
  Submitted by:	Alexander Spohr <as...@netmatic.com>
  
  Revision  Changes    Path
  1.310     +5 -1      apache/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /export/home/cvs/apache/src/CHANGES,v
  retrieving revision 1.309
  retrieving revision 1.310
  diff -C3 -r1.309 -r1.310
  *** CHANGES	1997/06/29 23:54:49	1.309
  --- CHANGES	1997/06/30 01:28:28	1.310
  ***************
  *** 1,5 ****
    Changes with Apache 1.3
  !   
      *) Add a ListenBacklog directive to control the backlog parameter
         passed to listen().  Also change the default to 511 from 512.
         [Marc Slemko]
  --- 1,9 ----
    Changes with Apache 1.3
  ! 
  !   *) If NETSCAPE_DBM_COMPAT is defined in EXTRA_CFLAGS then Apache
  !      will work with netscape dbm files.  (dbmmanage will probably not
  !      work however.) [Alexander Spohr <as...@netmatic.com>] PR#444
  ! 
      *) Add a ListenBacklog directive to control the backlog parameter
         passed to listen().  Also change the default to 511 from 512.
         [Marc Slemko]
  
  
  
  1.16      +5 -0      apache/src/mod_auth_dbm.c
  
  Index: mod_auth_dbm.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/mod_auth_dbm.c,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -C3 -r1.15 -r1.16
  *** mod_auth_dbm.c	1997/04/24 10:16:55	1.15
  --- mod_auth_dbm.c	1997/06/30 01:28:29	1.16
  ***************
  *** 126,132 ****
  --- 126,137 ----
        char *pw = NULL;
    
        q.dptr = user; 
  + #ifndef NETSCAPE_DBM_COMPAT
        q.dsize = strlen(q.dptr); 
  + #else
  +     q.dsize = strlen(q.dptr) + 1; 
  + #endif
  + 
        
        if(!(f=dbm_open(auth_dbmpwfile,O_RDONLY,0664))) {
            log_reason ("could not open dbm auth file", auth_dbmpwfile, r);