Commit 2283656b authored by Yuguo Zhang's avatar Yuguo Zhang
Browse files

ecl_open_stream: treat new file as exists after been created.

parent a3e1cf7c
......@@ -5146,6 +5146,7 @@ ecl_open_stream(cl_object filename, enum ecl_smmode smm, cl_object if_exists,
fd = safe_open(fname, O_WRONLY|O_CREAT, mode);
unlikely_if (fd < 0) FEcannot_open(filename);
exists = 1;
switch (smm) {
case ecl_smm_probe:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment