diff options
-rw-r--r-- | main/safe_mode.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/main/safe_mode.c b/main/safe_mode.c index 90bc0babe7..97c7613dde 100644 --- a/main/safe_mode.c +++ b/main/safe_mode.c @@ -89,13 +89,12 @@ PHPAPI int php_checkuid_ex(const char *filename, const char *fopen_mode, int mod #if HAVE_BROKEN_GETCWD char ftest[MAXPATHLEN]; - strcpy(ftest,filename); + strcpy(ftest, filename); if (VCWD_GETCWD(ftest, sizeof(ftest)) == NULL) { - strcpy(path,filename); - } else { - expand_filepath(filename, path TSRMLS_CC); - } + strcpy(path, filename); + } else #endif + expand_filepath(filename, path TSRMLS_CC); ret = VCWD_STAT(path, &sb); if (ret < 0) { |