From: Jeff Trawick Date: Fri, 31 Aug 2001 10:58:47 +0000 (+0000) Subject: resolve_symlink() is only used if REPLACE_PATH_INFO_METHOD is X-Git-Tag: 2.0.26~358 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99fc2084a64276ca33162a49eaaf0e53ca03786b;p=apache resolve_symlink() is only used if REPLACE_PATH_INFO_METHOD is defined git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90846 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/request.c b/server/request.c index b564715635..87f5363591 100644 --- a/server/request.c +++ b/server/request.c @@ -279,6 +279,7 @@ static int check_safe_file(request_rec *r) return HTTP_FORBIDDEN; } +#ifdef REPLACE_PATH_INFO_METHOD /* * resolve_symlink must _always_ be called on an APR_LNK file type! * It will resolve the actual target file type, modification date, etc, @@ -326,6 +327,7 @@ static int resolve_symlink(char *d, apr_finfo_t *lfi, int opts, apr_pool_t *p) memcpy(lfi, &fi, sizeof(fi)); return OK; } +#endif /* REPLACE_PATH_INFO_METHOD */ #ifndef REPLACE_PATH_INFO_METHOD