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) ...@@ -108,8 +108,10 @@ _s_open (mu_stream_t stream)
108 fstr = "w"; 108 fstr = "w";
109 else if (flags & MU_STREAM_RDWR) 109 else if (flags & MU_STREAM_RDWR)
110 fstr = "w+"; 110 fstr = "w+";
111 else /* default, also if flags & MU_STREAM_READ */ 111 else if (flags & MU_STREAM_READ)
112 fstr = "r"; 112 fstr = "r";
113 else
114 fstr = "w+";
113 115
114 fp = fdopen (fd, fstr); 116 fp = fdopen (fd, fstr);
115 if (!fp) 117 if (!fp)
......