mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
Creat is creat is creat, no open
This commit is contained in:
parent
178ae887ab
commit
1ae552c7d1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user