aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-attachment.c
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/e-msg-composer-attachment.c
parent1693c2c5f14550153ea5276743127c096ab9fe38 (diff)
downloadgsoc2013-evolution-d47fdce3f12ce7d377244ba8bd28975701086869.tar.gz
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/e-msg-composer-attachment.c')
-rw-r--r--composer/e-msg-composer-attachment.c2
1 files changed, 1 insertions, 1 deletions
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);