Re: Bug #10960: coding error in fopen_wrappers.c
| From: | Egan | Date: | Fri, 18 May 2001 20:26:12 +0000 |
| Subject: | Re: Bug #10960: coding error in fopen_wrappers.c | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-55828@lists.php.net to get a copy of this message | ||
On 18 May 2001 18:12:38 -0000, egan@sevenkings.net wrote:
>--- fopen_wrappers.c.orig Mon Feb 26 00:07:31 2001
>+++ fopen_wrappers.c Fri May 18 12:40:54 2001
>@@ -147,7 +147,7 @@
> SLS_FETCH();
>
> /* Special case basedir==".": Use script-directory */
>- if ((strcmp(PG(open_basedir), ".") == 0) &&
>+ if ((strcmp(basedir), ".") == 0) &&
> SG(request_info).path_translated &&
> *SG(request_info).path_translated
> ) {
>
>
Whoops! Left in an extra paren. The fix should be:
>+ if ((strcmp(basedir, ".") == 0) &&