pcs 97/09/12 01:54:42
Modified: src/os/win32 os.c Log: Update os_is_path_absolute() on win32. The check performed is the same as Apache already does in the code. Revision Changes Path 1.2 +6 -4 apachen/src/os/win32/os.c Index: os.c =================================================================== RCS file: /export/home/cvs/apachen/src/os/win32/os.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- os.c 1997/09/12 08:03:50 1.1 +++ os.c 1997/09/12 08:54:42 1.2 @@ -1,11 +1,13 @@ /* - * This file will include OS specific functions which are not inlineable. - * Any inlineable functions should be defined in os-inline.c instead. + * OS abstraction functions */ #include "os.h" -API_EXPORT(int)ap_is_path_absolute(char *file) +API_EXPORT(int)os_is_path_absolute(char *file) { - return (file && file[0] == '/' ? 1 : 0); + /* For now, just do the same check that http_request.c and mod_alias.c + * do. + */ + return (file && (file[0] == '/' || file[1] == ':') ? 1 : 0); }