wok diff libfm/stuff/empty-file.patch @ rev 18346
Up: nettle (3.1.1)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Fri Sep 11 18:59:23 2015 +0000 (2015-09-11) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libfm/stuff/empty-file.patch Fri Sep 11 18:59:23 2015 +0000 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)