summaryrefslogtreecommitdiff
path: root/main/php_virtual_cwd.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-05-29 11:45:20 +0000
committerZeev Suraski <zeev@php.net>2000-05-29 11:45:20 +0000
commit1ae552c7d1ded8c5cde37e85618f5eba87886f03 (patch)
tree901339875c291f705ec4a1ecc23fba15dbc6a2af /main/php_virtual_cwd.c
parent178ae887abbb6c52568682cac6a4b5eee3c0d5bb (diff)
downloadphp-git-1ae552c7d1ded8c5cde37e85618f5eba87886f03.tar.gz
Creat is creat is creat, no open
Diffstat (limited to 'main/php_virtual_cwd.c')
-rw-r--r--main/php_virtual_cwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_virtual_cwd.c b/main/php_virtual_cwd.c
index 3676e160bb..aba65be1d5 100644
--- a/main/php_virtual_cwd.c
+++ b/main/php_virtual_cwd.c
@@ -429,7 +429,7 @@ CWD_API int virtual_creat(const char *path, mode_t mode)
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;