diff options
-rw-r--r-- | ChangeLog | 15 | ||||
-rw-r--r-- | camel/camel-log.c | 5 | ||||
-rw-r--r-- | camel/camel-mime-message.c | 3 | ||||
-rw-r--r-- | camel/camel-stream-fs.c | 2 |
4 files changed, 22 insertions, 3 deletions
@@ -1,3 +1,18 @@ +1999-06-24 bertrand <Bertrand.Guiheneuf@inria.fr> + + * camel/camel-mime-message.c (_write_one_recipient_to_stream): + includes gmime-utils header. + patch from Ulrich Drepper <drepper at cygnus.com> + set separator string in write_header_with_glist_to_stream() + + * camel/camel-log.c (camel_log): + patch from Ulrich Drepper <drepper at cygnus.com> + Do not use stderr in initialization of logfile descriptor. + + * camel/camel-stream-fs.c (camel_stream_fs_new_with_name): + patch from Ulrich Drepper <drepper at cygnus.com> + initialize mode field in open(). + 1999-06-22 bertrand <Bertrand.Guiheneuf@inria.fr> * camel/camel-data-wrapper.c (_get_content_type): diff --git a/camel/camel-log.c b/camel/camel-log.c index fba71e9414..59ce5573b2 100644 --- a/camel/camel-log.c +++ b/camel/camel-log.c @@ -24,12 +24,15 @@ #include "camel-log.h" int camel_debug_level = 10; -FILE *camel_log_file_descriptor = stderr; +FILE *camel_log_file_descriptor = NULL; void camel_log(CamelLogLevel level, const gchar *format, ... ) { va_list args; + if (camel_log_file_descriptor == NULL) + camel_log_file_descriptor = stderr; + if (level<=camel_debug_level) { va_start(args, format); diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index fc4d28eced..df65c127f6 100644 --- a/camel/camel-mime-message.c +++ b/camel/camel-mime-message.c @@ -27,6 +27,7 @@ #include "gmime-content-field.h" #include "gstring-util.h" #include "camel-log.h" +#include "gmime-utils.h" typedef enum { HEADER_UNKNOWN, @@ -527,7 +528,7 @@ _write_one_recipient_to_stream (gpointer key, gpointer value, gpointer user_data // GString *current; CamelStream *stream = (CamelStream *)user_data; if ( (recipient_type) && (recipient_type->str) ) - write_header_with_glist_to_stream (stream, recipient_type->str, recipients); + write_header_with_glist_to_stream (stream, recipient_type->str, recipients, ", "); } static void diff --git a/camel/camel-stream-fs.c b/camel/camel-stream-fs.c index c7335f9821..09b193b229 100644 --- a/camel/camel-stream-fs.c +++ b/camel/camel-stream-fs.c @@ -111,7 +111,7 @@ camel_stream_fs_new_with_name (GString *name, CamelStreamFsMode mode) if ( (mode & CAMEL_STREAM_FS_READ) && !(mode & CAMEL_STREAM_FS_WRITE) ) if (v == -1) return NULL; - fd = open (name->str, flags); + fd = open (name->str, flags, 0600); if (fd==-1) { CAMEL_LOG (FULL_DEBUG, "CamelStreamFs::new_with_name can not obtain fd for file \"%s\"\n", name->str); CAMEL_LOG (FULL_DEBUG, " Full error text is : %s\n", strerror(errno)); |