whoops, opened for reading when it should have been opened for writing

Signed-off-by: Mattias Andrée <maandree@operamail.com>
m fixes

Signed-off-by: Mattias Andrée <maandree@operamail.com>
whitespace

Signed-off-by: Mattias Andrée <maandree@operamail.com>
m fixes

Signed-off-by: Mattias Andrée <maandree@operamail.com>