[Xfce4-commits] [apps/ristretto] 01/01: Fix opening image files that are symlinks

noreply at xfce.org noreply at xfce.org
Tue Jun 6 01:11:25 CEST 2017


This is an automated email from the git hooks/post-receive script.

f   2   4   0   4       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/ristretto.

commit 12515dccb354ffc4ffcc0cdd7a14d58e3b2628de
Author: Igor <f2404 at yandex.ru>
Date:   Mon Jun 5 19:02:03 2017 -0400

    Fix opening image files that are symlinks
    
    https://bugzilla.xfce.org/show_bug.cgi?id=13576
---
 src/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/file.c b/src/file.c
index fd2ff19..cf23b85 100644
--- a/src/file.c
+++ b/src/file.c
@@ -403,7 +403,7 @@ rstto_file_get_content_type ( RsttoFile *r_file )
     if ( NULL == r_file->priv->content_type )
     {
 #if HAVE_MAGIC_H
-        magic_t magic = magic_open (MAGIC_MIME_TYPE);
+        magic_t magic = magic_open (MAGIC_MIME_TYPE | MAGIC_SYMLINK);
         if ( NULL != magic )
         {
             file_path = rstto_file_get_path (r_file);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list