From a57815af6b1c0c3d0548fa1492f3c061018457fe Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 4 Oct 2002 18:10:44 +0000 Subject: Don't create a new file if the file doesn't exist. 2002-10-02 Jeffrey Stedfast * e-msg-composer.c (get_file_content): Don't create a new file if the file doesn't exist. svn path=/trunk/; revision=18325 --- composer/ChangeLog | 8 +++++++- composer/e-msg-composer.c | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/composer/ChangeLog b/composer/ChangeLog index 1c3a45c988..aae514d59c 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,8 @@ +2002-10-02 Jeffrey Stedfast + + * e-msg-composer.c (get_file_content): Don't create a new file if + the file doesn't exist. + 2002-10-01 Jeffrey Stedfast * e-msg-composer.c (build_message): If the user hits cancel when @@ -12,7 +17,8 @@ 2002-09-30 Aaron Weber - * evolution-composer.c (evolution_composer_factory_init): adjust string on line 391 + * evolution-composer.c (evolution_composer_factory_init): adjust + string on line 391 * e-msg-composer.c (create_composer): adjust string on 2872 diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 4ed027b41b..650d19497e 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -779,7 +779,7 @@ get_file_content (EMsgComposer *composer, const char *file_name, gboolean want_h char *content; int fd; - fd = open (file_name, O_RDONLY | O_CREAT, 0644); + fd = open (file_name, O_RDONLY); if (fd == -1) { char *msg; -- cgit