aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-attachment.c
diff options
context:
space:
mode:
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);