Commit cce5aea0 authored by joreland@mysql.com's avatar joreland@mysql.com

Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1

into mysql.com:/home/jonas/src/mysql-4.1-push
parents 5c9dee55 90ddbe87
...@@ -185,11 +185,11 @@ static void make_ftype(register my_string to, register int flag) ...@@ -185,11 +185,11 @@ static void make_ftype(register my_string to, register int flag)
DBUG_ASSERT(flag & (O_TRUNC|O_APPEND) != O_TRUNC|O_APPEND); DBUG_ASSERT(flag & (O_TRUNC|O_APPEND) != O_TRUNC|O_APPEND);
if (flag & (O_RDONLY|O_WRONLY) == O_WRONLY) if (flag & (O_RDONLY|O_WRONLY) == O_WRONLY)
*to++= (flag & O_TRUNC) ? 'w' : 'a'; *to++= (flag & O_APPEND) ? 'a' : 'w';
else if (flag & O_RDWR) else if (flag & O_RDWR)
{ {
/* Add '+' after theese */ /* Add '+' after theese */
if (flag & O_TRUNC) if (flag & (O_TRUNC | O_CREAT))
*to++= 'w'; *to++= 'w';
else if (flag & O_APPEND) else if (flag & O_APPEND)
*to++= 'a'; *to++= 'a';
......
Markdown is supported
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