From cfe0c82034e5ed8de3df373eab4a5545be688141 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 5 Nov 2002 14:50:17 +0000 Subject: Added 4th argument to virtual_file_ex() that specifies whether or not realpath() should be used during path resolving. In a number of functions we do not want to use realpath(), since realpath() will resolve symlinks. --- main/fopen_wrappers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/fopen_wrappers.c') diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index b5abebbca3..fe0174126f 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -536,7 +536,7 @@ PHPAPI char *expand_filepath(const char *filepath, char *real_path TSRMLS_DC) new_state.cwd = strdup(cwd); new_state.cwd_length = strlen(cwd); - if(virtual_file_ex(&new_state, filepath, NULL)) { + if(virtual_file_ex(&new_state, filepath, NULL, 1)) { free(new_state.cwd); return NULL; } -- cgit v1.2.1