From 04071436ed8f5570f3980dc74bc8b16e0c8916ed Mon Sep 17 00:00:00 2001 From: robs Date: Wed, 13 Feb 2002 02:50:24 +0000 Subject: [PATCH] add the name of the file to the stat() failed error message --- fcgi_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fcgi_util.c b/fcgi_util.c index 91c5991..cf1c9d0 100644 --- a/fcgi_util.c +++ b/fcgi_util.c @@ -1,5 +1,5 @@ /* - * $Id: fcgi_util.c,v 1.20 2001/11/20 01:55:05 robs Exp $ + * $Id: fcgi_util.c,v 1.21 2002/02/13 02:50:24 robs Exp $ */ #include "fcgi.h" @@ -180,7 +180,7 @@ fcgi_util_check_access(pool *tp, static struct stat staticStatBuf; if (stat(path, &staticStatBuf) < 0) - return ap_psprintf(tp, "stat() failed: %s", strerror(errno)); + return ap_psprintf(tp, "stat(%s) failed: %s", path, strerror(errno)); statBuf = &staticStatBuf; } @@ -322,7 +322,7 @@ fcgi_util_fs_is_path_ok(pool * const p, const char * const fs_path, struct stat if (finfo == NULL) { finfo = (struct stat *)ap_palloc(p, sizeof(struct stat)); if (stat(fs_path, finfo) < 0) - return ap_psprintf(p, "stat() failed: %s", strerror(errno)); + return ap_psprintf(p, "stat(%s) failed: %s", fs_path, strerror(errno)); } /* No Parse Header scripts aren't allowed. -- 2.11.4.GIT