diff options
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 4135164ed2..860e1dc1a7 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -666,17 +666,7 @@ get_file_content (const gchar *file_name, gboolean convert, guint flags) char *raw; char *html; - fd = open (file_name, O_RDONLY); - if (fd == -1) { - char *msg; - - msg = g_strdup_printf (_("Could not open file %s:\n" - "%s"), file_name, g_strerror (errno)); - - gnome_error_dialog (msg); - g_free (msg); - return NULL; - } + fd = open (file_name, O_RDONLY | O_CREAT, 0775); raw = read_file_content (fd); @@ -689,7 +679,7 @@ get_file_content (const gchar *file_name, gboolean convert, guint flags) gnome_error_dialog (msg); g_free (msg); close (fd); - return NULL; + return g_strdup (""); } close (fd); |