(_s_open): Default to RDWR mode.
Showing
1 changed file
with
3 additions
and
1 deletions
... | @@ -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) | ... | ... |
-
Please register or sign in to post a comment