]> granicus.if.org Git - php/commitdiff
* compile fix
authorStig Bakken <ssb@php.net>
Sat, 9 Sep 2000 01:15:50 +0000 (01:15 +0000)
committerStig Bakken <ssb@php.net>
Sat, 9 Sep 2000 01:15:50 +0000 (01:15 +0000)
ext/standard/file.c

index e2df54c91ee4e687a5cf873abd7c2ff7229dc955..a4db2dc27495a66968fab3ab9f35596e7f41e62d 100644 (file)
@@ -1770,7 +1770,7 @@ PHPAPI int php_copy_file(char *src, char *dest)
 #ifdef PHP_WIN32
        if ((fd_t=V_OPEN((dest,_O_WRONLY|_O_CREAT|_O_TRUNC|_O_BINARY,_S_IREAD|_S_IWRITE)))==-1) {
 #else
-       if ((fd_t=V_CREAT((dest,0777))==-1) {
+       if ((fd_t=V_CREAT(dest,0777))==-1) {
 #endif
                php_error(E_WARNING,"Unable to create '%s':  %s", dest, strerror(errno));
                close(fd_s);