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
fcc8b0cb
...
fcc8b0cbf626c629cb85fa83fbad61d25380c378
authored
2001-06-04 00:27:38 +0000
by
Sam Roberts
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Return EINVAL for meaningless combination of MU_STREAM_READ + WRITE.
1 parent
7481f59a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
ChangeLog
mailbox/file_stream.c
mailbox/mapfile_stream.c
ChangeLog
View file @
fcc8b0c
2001-06-03 Sam Roberts
* mailbox/file_stream.c,mailbox/mapfile_stream.c: Return EINVAL
for meaningless combination of MU_STREAM_READ + WRITE.
2001-06-03 Alain Magloire
* doc/*; Bunch of typos corrected.
...
...
mailbox/file_stream.c
View file @
fcc8b0c
...
...
@@ -244,7 +244,9 @@ _file_open (stream_t stream, const char *filename, int port, int flags)
}
/* Map the flags to the system equivalent. */
if
(
flags
&
MU_STREAM_WRITE
)
if
(
flags
&
MU_STREAM_WRITE
&&
flags
&
MU_STREAM_READ
)
return
EINVAL
;
else
if
(
flags
&
MU_STREAM_WRITE
)
flg
=
O_WRONLY
;
else
if
(
flags
&
MU_STREAM_RDWR
)
flg
=
O_RDWR
;
...
...
mailbox/mapfile_stream.c
View file @
fcc8b0c
...
...
@@ -279,7 +279,9 @@ _mapfile_open (stream_t stream, const char *filename, int port, int flags)
mfs
->
fd
=
-
1
;
}
/* Map the flags to the system equivalent */
if
(
flags
&
MU_STREAM_WRITE
)
if
(
flags
&
MU_STREAM_WRITE
&&
flags
&
MU_STREAM_READ
)
return
EINVAL
;
else
if
(
flags
&
MU_STREAM_WRITE
)
{
mflag
=
PROT_WRITE
;
flg
=
O_WRONLY
;
...
...
Please
register
or
sign in
to post a comment