26 lines
1.2 KiB
Plaintext
26 lines
1.2 KiB
Plaintext
$NetBSD: patch-rcube_mime_default,v 1.2 2015/12/26 14:24:48 taca Exp $
|
|
|
|
Fix path to /etc/.
|
|
|
|
--- program/lib/Roundcube/rcube_mime.php.orig 2015-12-23 09:18:12.000000000 +0000
|
|
+++ program/lib/Roundcube/rcube_mime.php
|
|
@@ -770,12 +770,12 @@ class rcube_mime
|
|
$file_paths[] = 'C:/xampp/apache/conf/mime.types.';
|
|
}
|
|
else {
|
|
- $file_paths[] = '/etc/mime.types';
|
|
- $file_paths[] = '/etc/httpd/mime.types';
|
|
- $file_paths[] = '/etc/httpd2/mime.types';
|
|
- $file_paths[] = '/etc/apache/mime.types';
|
|
- $file_paths[] = '/etc/apache2/mime.types';
|
|
- $file_paths[] = '/etc/nginx/mime.types';
|
|
+ $file_paths[] = '@PKG_SYSCONFBASE@/mime.types';
|
|
+ $file_paths[] = '@PKG_SYSCONFBASE@/httpd/mime.types';
|
|
+ $file_paths[] = '@PKG_SYSCONFBASE@/httpd2/mime.types';
|
|
+ $file_paths[] = '@PKG_SYSCONFBASE@/apache/mime.types';
|
|
+ $file_paths[] = '@PKG_SYSCONFBASE@/apache2/mime.types';
|
|
+ $file_paths[] = '@PKG_SYSCONFBASE@/nginx/mime.types';
|
|
$file_paths[] = '/usr/local/etc/httpd/conf/mime.types';
|
|
$file_paths[] = '/usr/local/etc/apache/conf/mime.types';
|
|
}
|