raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=bfe02d2303dd45bb603e687f882f49b9170a5eec

commit bfe02d2303dd45bb603e687f882f49b9170a5eec
Author: Al Poole <nets...@gmail.com>
Date:   Wed Nov 2 10:58:49 2016 +0900

    efm - fix popup if file is a fifo
    
     this fixes T4815
    
    @fix
---
 src/modules/fileman/e_fwin.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/modules/fileman/e_fwin.c b/src/modules/fileman/e_fwin.c
index ae7a3c4..0c7aa5e 100644
--- a/src/modules/fileman/e_fwin.c
+++ b/src/modules/fileman/e_fwin.c
@@ -877,12 +877,18 @@ _e_fwin_icon_popup(void *data)
    char buf[4096];
    int mw, mh;
    E_Fm2_Icon_Info *popup_icon;
+   struct stat st;
 
    fwin->popup_timer = NULL;
    popup_icon = e_fm2_icon_file_get(fwin->cur_page->fm_obj, fwin->over_file);
    if (!popup_icon) return EINA_FALSE;
    snprintf(buf, sizeof(buf), "%s/%s", 
e_fm2_real_path_get(fwin->cur_page->fm_obj), popup_icon->file);
    if (!ecore_file_can_read(buf)) return EINA_FALSE;
+
+   if (stat(buf, &st) < 0) return EINA_FALSE;
+
+   if (S_ISFIFO(st.st_mode)) return EINA_FALSE;
+
    if (fwin->popup)
      {
         evas_object_hide(fwin->popup);

-- 


Reply via email to