cvs: php4 / php_virtual_cwd.c

[email protected] ("Zeev Suraski")
Newsgroups php.version4
Message-ID <cvszeev959600720@cvsserver>
zeev		Mon May 29 04:45:20 2000 EDT

  Modified files:
    /php4	php_virtual_cwd.c 
  Log:
  Creat is creat is creat, no open
  
  
Index: php4/php_virtual_cwd.c
diff -u php4/php_virtual_cwd.c:1.46 php4/php_virtual_cwd.c:1.47
--- php4/php_virtual_cwd.c:1.46	Tue May 23 10:02:21 2000
+++ php4/php_virtual_cwd.c	Mon May 29 04:45:20 2000
@@ -429,7 +429,7 @@
 	CWD_STATE_COPY(&new_state, &CWDG(cwd));
 	virtual_file_ex(&new_state, path, NULL);
 
-	f = open(new_state.cwd, O_CREAT | O_TRUNC, mode);
+	f = creat(new_state.cwd,  mode);
 
 	CWD_STATE_FREE(&new_state);
 	return f;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.