1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Rework ap_finfo_t to split the file type out of the protection field.

I've taken a stab at the unix implementation but tested only on OS/2.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84416 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brian Havard
2000-01-10 15:35:51 +00:00
parent faff1f01dd
commit 0df3ec32ca
8 changed files with 27 additions and 26 deletions

View File

@@ -482,7 +482,7 @@ static int cgi_handler(request_rec *r)
#if defined(OS2) || defined(WIN32)
/* Allow for cgi files without the .EXE extension on them under OS/2 */
if (r->finfo.st_mode == 0) {
if (r->finfo.protection == 0) {
struct stat statbuf;
char *newfile;
@@ -500,7 +500,7 @@ static int cgi_handler(request_rec *r)
return log_scripterror(r, conf, NOT_FOUND, APLOG_NOERRNO,
"script not found or unable to stat");
#endif
if (S_ISDIR(r->finfo.protection))
if (r->finfo.filetype == APR_DIR)
return log_scripterror(r, conf, FORBIDDEN, APLOG_NOERRNO,
"attempt to invoke directory as script");