aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorRadek Doulik <rodo@helixcode.com>2000-11-04 19:01:17 +0800
committerRadek Doulik <rodo@src.gnome.org>2000-11-04 19:01:17 +0800
commitd47fdce3f12ce7d377244ba8bd28975701086869 (patch)
tree1ebc04b5fa49780d64f744c0c6b6fa453e1660ae /composer
parent1693c2c5f14550153ea5276743127c096ab9fe38 (diff)
downloadgsoc2013-evolution-d47fdce3f12ce7d377244ba8bd28975701086869.tar
gsoc2013-evolution-d47fdce3f12ce7d377244ba8bd28975701086869.tar.gz
gsoc2013-evolution-d47fdce3f12ce7d377244ba8bd28975701086869.tar.bz2
gsoc2013-evolution-d47fdce3f12ce7d377244ba8bd28975701086869.tar.lz
gsoc2013-evolution-d47fdce3f12ce7d377244ba8bd28975701086869.tar.xz
gsoc2013-evolution-d47fdce3f12ce7d377244ba8bd28975701086869.tar.zst
gsoc2013-evolution-d47fdce3f12ce7d377244ba8bd28975701086869.zip
fix test for regular file to !S_ISREG (statbuf.st_mode)
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) svn path=/trunk/; revision=6392
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog3
-rw-r--r--composer/e-msg-composer-attachment.c2
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);