1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

When first creating the ARZ file for an archive table, use "wb" as the mode for

gzdopen() because the file itself was only opened for writing (and truncated),
and some libc implementations (like SCO) don't like to do a fdopen(..., "a") on
a fd that was not opened using O_APPEND.
This commit is contained in:
jimw@mysql.com
2005-09-08 21:40:59 +02:00
parent a540a66b26
commit 121678a72e

View File

@ -520,7 +520,7 @@ int ha_archive::create(const char *name, TABLE *table_arg,
error= my_errno;
goto error;
}
if ((archive= gzdopen(create_file, "ab")) == NULL)
if ((archive= gzdopen(create_file, "wb")) == NULL)
{
error= errno;
goto error2;