diff options
author | Pierre Joye <pajoye@php.net> | 2010-09-13 09:30:07 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2010-09-13 09:30:07 +0000 |
commit | d5ca12b03ec192e2a9155c8b5c50da375f9058cf (patch) | |
tree | 898c9496cdc8b2048be30104470459d87016eed4 /TSRM | |
parent | ba5b4afc3268ebd134c02a6895d6649c637151ba (diff) | |
download | php-git-d5ca12b03ec192e2a9155c8b5c50da375f9058cf.tar.gz |
- use php_sys_readlink
Diffstat (limited to 'TSRM')
-rw-r--r-- | TSRM/tsrm_virtual_cwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index a6bdc8d393..dd882e6236 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -1006,7 +1006,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i memcpy(tmp, path, len+1); if (save && S_ISLNK(st.st_mode)) { - if (++(*ll) > LINK_MAX || (j = readlink(tmp, path, MAXPATHLEN)) < 0) { + if (++(*ll) > LINK_MAX || (j = php_sys_readlink(tmp, path, MAXPATHLEN)) < 0) { /* too many links or broken symlinks */ tsrm_free_alloca(tmp, use_heap); return -1; |