Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 28 lines 849 B view raw
1diff --git a/src/procmime.c b/src/procmime.c 2index bd3239e..06a3b26 100644 3--- a/src/procmime.c 4+++ b/src/procmime.c 5@@ -1144,20 +1144,16 @@ GList *procmime_get_mime_type_list(void) 6 MimeType *mime_type; 7 gboolean fp_is_glob_file = TRUE; 8 9 if (mime_type_list) 10 return mime_type_list; 11- 12-#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) 13- if ((fp = claws_fopen(DATAROOTDIR "/mime/globs", "rb")) == NULL) 14-#else 15- if ((fp = claws_fopen("/usr/share/mime/globs", "rb")) == NULL) 16-#endif 17+ 18+ if ((fp = claws_fopen("@MIMEROOTDIR@/mime/globs", "rb")) == NULL) 19 { 20 fp_is_glob_file = FALSE; 21 if ((fp = claws_fopen("/etc/mime.types", "rb")) == NULL) { 22 if ((fp = claws_fopen(SYSCONFDIR "/mime.types", "rb")) 23 == NULL) { 24 FILE_OP_ERROR(SYSCONFDIR "/mime.types", 25 "claws_fopen"); 26 return NULL; 27 } 28