diff options
author | Zeev Suraski <zeev@php.net> | 2000-05-29 11:45:20 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-05-29 11:45:20 +0000 |
commit | 1ae552c7d1ded8c5cde37e85618f5eba87886f03 (patch) | |
tree | 901339875c291f705ec4a1ecc23fba15dbc6a2af /main/php_virtual_cwd.c | |
parent | 178ae887abbb6c52568682cac6a4b5eee3c0d5bb (diff) | |
download | php-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.c | 2 |
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; |