]> granicus.if.org Git - php/commitdiff
- fix typo
authorJani Taskinen <jani@php.net>
Thu, 11 Oct 2007 09:33:30 +0000 (09:33 +0000)
committerJani Taskinen <jani@php.net>
Thu, 11 Oct 2007 09:33:30 +0000 (09:33 +0000)
main/safe_mode.c

index 90bc0babe7748957edcf5551f9eb357959f060d5..97c7613ddef8e5e3fe847ffc1e3dfccdcf7304ce 100644 (file)
@@ -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) {