diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-12-07 13:22:44 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-12-07 13:30:18 +0200 |
commit | c2b4805128f2619235396726a116331606729e62 (patch) | |
tree | 70fbc6b6120e4b667ad2533bed30630751182a39 /libmailutils/base | |
parent | da9c204ef4ff9b89863a15bd3346331acc7b5679 (diff) | |
download | mailutils-c2b4805128f2619235396726a116331606729e62.tar.gz mailutils-c2b4805128f2619235396726a116331606729e62.tar.bz2 |
file_stream: Bugfixes
* libmailutils/stream/file_stream.c (fd_open): Remove file state
checks: it is the responsibility of the caller.
Set autoclose on the *stream* flags (bugfix, previously the underlying
fd was never closed).
Clear MU_STREAM_SEEK flag if seek fails.
(_mu_file_stream_create): Remove assignment to stream.error_string
* include/mailutils/stream.h (MU_STREAM_ALLOW_LINKS): Remove flag.
* libmailutils/base/amd.c (amd_message_stream_open): Initialize flags
to 0.
Diffstat (limited to 'libmailutils/base')
-rw-r--r-- | libmailutils/base/amd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmailutils/base/amd.c b/libmailutils/base/amd.c index 99f340a15..9f9501662 100644 --- a/libmailutils/base/amd.c +++ b/libmailutils/base/amd.c @@ -1589,7 +1589,7 @@ amd_message_stream_open (struct _amd_message *mhm) struct _amd_data *amd = mhm->amd; char *filename; int status; - int flags = MU_STREAM_ALLOW_LINKS; + int flags = 0; status = amd->cur_msg_file_name (mhm, &filename); if (status) |