summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Poole <netstar@gmail.com>2016-11-02 10:58:49 +0900
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-11-18 11:36:39 -0500
commitc6a8a52c0da45ccb83bc443942f3e019945cfd2d (patch)
treedeb8d49c46d7a22022a1516c5bb39e80c25c93ec
parente0699c06405f2aac0fa585b849ed947238f6bcc6 (diff)
efm - fix popup if file is a fifo
this fixes T4815 @fix
-rw-r--r--src/modules/fileman/e_fwin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/fileman/e_fwin.c b/src/modules/fileman/e_fwin.c
index ae7a3c450..0c7aa5e69 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)
877 char buf[4096]; 877 char buf[4096];
878 int mw, mh; 878 int mw, mh;
879 E_Fm2_Icon_Info *popup_icon; 879 E_Fm2_Icon_Info *popup_icon;
880 struct stat st;
880 881
881 fwin->popup_timer = NULL; 882 fwin->popup_timer = NULL;
882 popup_icon = e_fm2_icon_file_get(fwin->cur_page->fm_obj, fwin->over_file); 883 popup_icon = e_fm2_icon_file_get(fwin->cur_page->fm_obj, fwin->over_file);
883 if (!popup_icon) return EINA_FALSE; 884 if (!popup_icon) return EINA_FALSE;
884 snprintf(buf, sizeof(buf), "%s/%s", e_fm2_real_path_get(fwin->cur_page->fm_obj), popup_icon->file); 885 snprintf(buf, sizeof(buf), "%s/%s", e_fm2_real_path_get(fwin->cur_page->fm_obj), popup_icon->file);
885 if (!ecore_file_can_read(buf)) return EINA_FALSE; 886 if (!ecore_file_can_read(buf)) return EINA_FALSE;
887
888 if (stat(buf, &st) < 0) return EINA_FALSE;
889
890 if (S_ISFIFO(st.st_mode)) return EINA_FALSE;
891
886 if (fwin->popup) 892 if (fwin->popup)
887 { 893 {
888 evas_object_hide(fwin->popup); 894 evas_object_hide(fwin->popup);