httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@locus.apache.org
Subject cvs commit: apache-1.3/src/os/os2 os.h
Date Fri, 22 Sep 2000 18:20:57 GMT
wrowe       00/09/22 11:20:54

  Modified:    src/os/win32 os.h
               src/os/os2 os.h
  Log:
    Add the platform test HAVE_UNC_PATHS and carefully authenticate that
    colon is -followed- by a slash for an absolute path under Win32 [Please
    check OS2 on this point  as well!]
  
  Revision  Changes    Path
  1.33      +2 -1      apache-1.3/src/os/win32/os.h
  
  Index: os.h
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/os/win32/os.h,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- os.h	2000/06/22 22:57:33	1.32
  +++ os.h	2000/09/22 18:20:49	1.33
  @@ -106,6 +106,7 @@
   #define MULTITHREAD
   #define HAVE_CANONICAL_FILENAME
   #define HAVE_DRIVE_LETTERS
  +#define HAVE_UNC_PATHS
   typedef int uid_t;
   typedef int gid_t;
   typedef int pid_t;
  @@ -167,7 +168,7 @@
     /* For now, just do the same check that http_request.c and mod_alias.c
      * do. 
      */
  -  return file[0] == '/' || file[1] == ':';
  +  return file && (file[0] == '/' || (file[1] == ':' && file[2] == '/'));
   }
   
   #define stat(f,ps)  os_stat(f,ps)
  
  
  
  1.16      +1 -0      apache-1.3/src/os/os2/os.h
  
  Index: os.h
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/os/os2/os.h,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- os.h	1999/05/07 05:49:46	1.15
  +++ os.h	2000/09/22 18:20:52	1.16
  @@ -4,6 +4,7 @@
   #define PLATFORM "OS/2"
   #define HAVE_CANONICAL_FILENAME
   #define HAVE_DRIVE_LETTERS
  +#define HAVE_UNC_PATHS
   
   /*
    * This file in included in all Apache source code. It contains definitions
  
  
  

Mime
View raw message