summaryrefslogtreecommitdiff
path: root/main/php_realpath.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-04-20 16:38:08 +0000
committerAndi Gutmans <andi@php.net>2000-04-20 16:38:08 +0000
commite40268d07c9f0cae3f43b80e2c795a2b35253af5 (patch)
treeb5c4ed2f87664876e3012642e44f2edfd9e4e1f5 /main/php_realpath.c
parentba37ae2c0b8048d2a43c8a3008f539c12a464aa5 (diff)
downloadphp-git-e40268d07c9f0cae3f43b80e2c795a2b35253af5.tar.gz
- Add missing V_STAT()
Diffstat (limited to 'main/php_realpath.c')
-rw-r--r--main/php_realpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_realpath.c b/main/php_realpath.c
index d60efa362c..66dfe5e9ca 100644
--- a/main/php_realpath.c
+++ b/main/php_realpath.c
@@ -251,7 +251,7 @@ char *php_realpath(char *path, char resolved_path []) {
}
/* Check if the resolved path is a directory */
- if (stat(path_construction, &filestat) != 0) return NULL;
+ if (V_STAT(path_construction, &filestat) != 0) return NULL;
if (S_ISDIR(filestat.st_mode)) {
/* It's a directory, append a / if needed */
if (*(writepos-1) != '/') {