diff options
Diffstat (limited to 'composer')
-rw-r--r-- | composer/ChangeLog | 3 | ||||
-rw-r--r-- | composer/e-msg-composer-attachment.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index edb13ea3b5..e1c9b8841e 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,5 +1,8 @@ 2000-11-04 Radek Doulik <rodo@helixcode.com> + * e-msg-composer-attachment.c (e_msg_composer_attachment_new): fix + test for regular file to !S_ISREG (statbuf.st_mode) + * listener.c (resolve_image_url): use inline images hash table * e-msg-composer.c (init): create inlined images hash table diff --git a/composer/e-msg-composer-attachment.c b/composer/e-msg-composer-attachment.c index 2ec141064b..537774d109 100644 --- a/composer/e-msg-composer-attachment.c +++ b/composer/e-msg-composer-attachment.c @@ -180,7 +180,7 @@ e_msg_composer_attachment_new (const gchar *file_name, const gchar *content_id) return NULL; /* return if it's not a regular file */ - if (!S_ISREG (statbuf.st_dev)) + if (!S_ISREG (statbuf.st_mode)) return NULL; stream = camel_stream_fs_new_with_name (file_name, O_RDONLY, 0); |