wok diff libfm/stuff/empty-file.patch @ rev 17905
Up: tazusb tazlito
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sat Apr 04 21:58:38 2015 +0200 (2015-04-04) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libfm/stuff/empty-file.patch Sat Apr 04 21:58:38 2015 +0200 1.3 @@ -0,0 +1,15 @@ 1.4 +--- src/base/fm-mime-type.c.orig 1.5 ++++ src/base/fm-mime-type.c 1.6 +@@ -156,10 +156,10 @@ 1.7 + if(uncertain) 1.8 + { 1.9 + int fd, len; 1.10 +- if(pstat->st_size == 0) /* empty file = text file with 0 characters in it. */ 1.11 ++ if(pstat->st_size == 0) /* empty file */ 1.12 + { 1.13 + g_free(type); 1.14 +- return fm_mime_type_from_name("text/plain"); 1.15 ++ return fm_mime_type_from_name("application/x-zerosize"); 1.16 + } 1.17 + fd = open(file_path, O_RDONLY); 1.18 + if(fd >= 0)