From: Zeev Suraski Date: Mon, 29 May 2000 11:45:20 +0000 (+0000) Subject: Creat is creat is creat, no open X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~203 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ae552c7d1ded8c5cde37e85618f5eba87886f03;p=php Creat is creat is creat, no open --- 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;