Commit 0f7d2dfc 0f7d2dfcc86eb5088892b7133a6c39c274717b4a by Sergey Poznyakoff

(_s_open): Default to RDWR mode.

1 parent 273902ce
......@@ -108,8 +108,10 @@ _s_open (mu_stream_t stream)
fstr = "w";
else if (flags & MU_STREAM_RDWR)
fstr = "w+";
else /* default, also if flags & MU_STREAM_READ */
else if (flags & MU_STREAM_READ)
fstr = "r";
else
fstr = "w+";
fp = fdopen (fd, fstr);
if (!fp)
......