wok-current diff libfm/stuff/empty-file.patch @ rev 20373
gcc??-lib-base: restore previous libgcc_s.so.1
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jun 10 15:08:22 2018 +0200 (2018-06-10) |
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 Jun 10 15:08:22 2018 +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)