Commit 897b3c50 authored by unknown's avatar unknown
Browse files

a fix (bug #11193: error messages gets garbled after reggies latest changeset:...

a fix (bug #11193: error messages gets garbled after reggies latest changeset: ChangeSet@1.2260.1.).


parent 777899a6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);  

  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)          
  {
    /* Add '+' after theese */    
    if (flag & O_TRUNC)      
    if (flag & (O_TRUNC | O_CREAT))      
      *to++= 'w';    
    else if (flag & O_APPEND)      
      *to++= 'a';