Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
0f7d2dfc
...
0f7d2dfcc86eb5088892b7133a6c39c274717b4a
authored
2007-11-20 12:48:07 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(_s_open): Default to RDWR mode.
1 parent
273902ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
mailbox/socket_stream.c
mailbox/socket_stream.c
View file @
0f7d2df
...
...
@@ -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
)
...
...
Please
register
or
sign in
to post a comment