summaryrefslogtreecommitdiff
path: root/extra/replace.c
diff options
context:
space:
mode:
Diffstat (limited to 'extra/replace.c')
-rw-r--r--extra/replace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/replace.c b/extra/replace.c
index eabf953837b..4086f22d129 100644
--- a/extra/replace.c
+++ b/extra/replace.c
@@ -1072,7 +1072,7 @@ static int convert_file(REPLACE *rep, char * name)
if (!(in= my_fopen(org_name,O_RDONLY,MYF(MY_WME))))
DBUG_RETURN(1);
dirname_part(dir_buff, org_name, &dir_buff_length);
- if ((temp_file= create_temp_file(tempname, dir_buff, "PR", O_WRONLY,
+ if ((temp_file= create_temp_file(tempname, dir_buff, "PR", 0,
MYF(MY_WME))) < 0)
{
my_fclose(in,MYF(0));