httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apache-1.3/src/os/netware os.c
Date Wed, 31 Jan 2001 21:52:14 GMT
wrowe       01/01/31 13:52:13

  Modified:    src      CHANGES
               src/os/netware os.c
  Log:
    *) Fixed a problem with file extensions being truncated during
       the call to ap_os_canonical_filename().
       [Brad Nicholes <BNICHOLES@novell.com>]
  
  Revision  Changes    Path
  1.1631    +4 -0      apache-1.3/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/CHANGES,v
  retrieving revision 1.1630
  retrieving revision 1.1631
  diff -u -r1.1630 -r1.1631
  --- CHANGES	2001/01/26 21:59:39	1.1630
  +++ CHANGES	2001/01/31 21:52:07	1.1631
  @@ -1,5 +1,9 @@
   Changes with Apache 1.3.18
   
  +  *) Fixed a problem with file extensions being truncated during
  +     the call to ap_os_canonical_filename().
  +	 [Brad Nicholes <BNICHOLES@novell.com>]
  +
   Changes with Apache 1.3.17
   
     *) Normalize the Netware path names to close a potential security
  
  
  
  1.11      +3 -4      apache-1.3/src/os/netware/os.c
  
  Index: os.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/os/netware/os.c,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- os.c	2001/01/25 21:58:11	1.10
  +++ os.c	2001/01/31 21:52:11	1.11
  @@ -155,11 +155,10 @@
       }
       if ((slash_test = strchr(pNewName, ':')) && (*(slash_test+1) != '/'))
       {
  -        char vol[_MAX_VOLUME+1], dir[_MAX_DIR+1];
  -        char fname[_MAX_FNAME+1], ext[_MAX_EXT+1];
  +        char vol[_MAX_VOLUME+1];
           
  -        _splitpath (pNewName, vol, dir, fname, ext);
  -        pNewName = ap_pstrcat (pPool, vol, "/", dir, fname, ext, NULL);
  +        _splitpath (pNewName, vol, NULL, NULL, NULL);
  +        pNewName = ap_pstrcat (pPool, vol, "/", pNewName+strlen(vol), NULL);
       }
       strlwr(pNewName);
       return pNewName;
  
  
  

Mime
View raw message