From 1ae552c7d1ded8c5cde37e85618f5eba87886f03 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Mon, 29 May 2000 11:45:20 +0000 Subject: [PATCH] Creat is creat is creat, no open --- main/php_virtual_cwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1