summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2004-10-28 05:05:20 +0000
committerAntony Dovgal <tony2001@php.net>2004-10-28 05:05:20 +0000
commitaa35b11afe7cdd9781c9afee4e83b67006c979db (patch)
treecaddb31493b8ad66e049c61de48d4924cbe0847b /main
parent72558f26737ad76b50dba049f53f3efe30b144eb (diff)
downloadphp-git-aa35b11afe7cdd9781c9afee4e83b67006c979db.tar.gz
fix Win32 & Netware build
Diffstat (limited to 'main')
-rw-r--r--main/streams/plain_wrapper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c
index a7f7088fc1..baa4c95087 100644
--- a/main/streams/plain_wrapper.c
+++ b/main/streams/plain_wrapper.c
@@ -1024,6 +1024,7 @@ static int php_plain_files_rename(php_stream_wrapper *wrapper, char *url_from, c
struct stat sb;
if (php_copy_file(url_from, url_to TSRMLS_CC) == SUCCESS) {
if (VCWD_STAT(url_from, &sb) == 0) {
+#if !defined(TSRM_WIN32) && !defined(NETWARE)
if (VCWD_CHMOD(url_to, sb.st_mode)) {
if (errno == EPERM) {
php_error_docref2(NULL TSRMLS_CC, url_from, url_to, E_WARNING, "%s", strerror(errno));
@@ -1042,6 +1043,7 @@ static int php_plain_files_rename(php_stream_wrapper *wrapper, char *url_from, c
php_error_docref2(NULL TSRMLS_CC, url_from, url_to, E_WARNING, "%s", strerror(errno));
return 0;
}
+#endif
VCWD_UNLINK(url_from);
return 1;
}