diff options
author | Iain Holmes <iain@src.gnome.org> | 2001-09-21 06:51:19 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2001-09-21 06:51:19 +0800 |
commit | c503814d7ff5b5656cf1ac92c3f51a327859f76f (patch) | |
tree | 55440a4df7fc9767adea296f4fada7e7e0ab4511 /composer/e-msg-composer.c | |
parent | 7863fdd24ffac4a0d6d13b10a90b220e058bb5ad (diff) | |
download | gsoc2013-evolution-c503814d7ff5b5656cf1ac92c3f51a327859f76f.tar.gz gsoc2013-evolution-c503814d7ff5b5656cf1ac92c3f51a327859f76f.tar.zst gsoc2013-evolution-c503814d7ff5b5656cf1ac92c3f51a327859f76f.zip |
Create nonexistant files.
svn path=/trunk/; revision=13021
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); |