wok-current diff libfm/stuff/empty-file.patch @ rev 23153
updated lxtask (0.1.8 -> 0.1.9)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Mar 15 16:52:17 2020 +0100 (2020-03-15) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libfm/stuff/empty-file.patch Sun Mar 15 16:52:17 2020 +0100 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)