Commit 75c6408f authored by Randy Terbush's avatar Randy Terbush
Browse files

Make http_request.c changes a bit more portable.

Change Copyright dates for both files.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3@77422 13f79535-47bb-0310-9956-ffa450edef68
parent d0c8fecd
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line

/* ====================================================================
 * Copyright (c) 1995 The Apache Group.  All rights reserved.
 * Copyright (c) 1995-1997 The Apache Group.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
@@ -179,7 +179,14 @@ int get_path_info(request_rec *r)
	    *cp = '\0';
	    return OK;
	}
#if defined(ENOENT)
	else if (errno == ENOENT) {
#else
  #error Your system apparently does not define ENOENT.
  #error Removal of these lines opens a security hole if protecting
  #error from directory indexes with DirectoryIndex.
	else {
#endif
	    last_cp = cp;
	
	    while (--cp > path && *cp != '/')
@@ -188,10 +195,12 @@ int get_path_info(request_rec *r)
	    while (cp > path && cp[-1] == '/')
		--cp;
	} 
#if defined(ENOENT)
	else {
	    log_reason("unable to determine if index file exists (stat() returned unexpected error)", r->filename, r);
	    return HTTP_FORBIDDEN;
	    return FORBIDDEN;
	}
#endif
    }

    return OK;
+1 −1
Original line number Diff line number Diff line

/* ====================================================================
 * Copyright (c) 1995, 1996 The Apache Group.  All rights reserved.
 * Copyright (c) 1995-1997 The Apache Group.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions