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
9a634b93
...
9a634b93c85617fe56c4606f3a692a37437c4080
authored
2006-01-20 13:21:58 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(_file_write): Return ENOSPC if fwrite returns 0.
1 parent
070ac168
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
mailbox/file_stream.c
mailbox/file_stream.c
View file @
9a634b9
...
...
@@ -163,7 +163,7 @@ _file_readline (mu_stream_t stream, char *optr, size_t osize,
static
int
_file_write
(
mu_stream_t
stream
,
const
char
*
iptr
,
size_t
isize
,
mu_off_t
offset
,
size_t
*
nbytes
)
mu_off_t
offset
,
size_t
*
nbytes
)
{
struct
_file_stream
*
fs
=
mu_stream_get_owner
(
stream
);
size_t
n
;
...
...
@@ -188,6 +188,8 @@ _file_write (mu_stream_t stream, const char *iptr, size_t isize,
{
if
(
feof
(
fs
->
file
)
==
0
)
err
=
EIO
;
else
if
(
n
==
0
)
err
=
ENOSPC
;
clearerr
(
fs
->
file
);
n
=
0
;
}
...
...
Please
register
or
sign in
to post a comment