diff options
author | Radek Doulik <rodo@helixcode.com> | 2000-11-04 19:01:17 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2000-11-04 19:01:17 +0800 |
commit | d47fdce3f12ce7d377244ba8bd28975701086869 (patch) | |
tree | 1ebc04b5fa49780d64f744c0c6b6fa453e1660ae | |
parent | 1693c2c5f14550153ea5276743127c096ab9fe38 (diff) | |
download | gsoc2013-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
-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); |