summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/mtools/mtools/disable-hardcoded-configs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/mtools/mtools/disable-hardcoded-configs.patch')
-rw-r--r--meta/recipes-devtools/mtools/mtools/disable-hardcoded-configs.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-devtools/mtools/mtools/disable-hardcoded-configs.patch b/meta/recipes-devtools/mtools/mtools/disable-hardcoded-configs.patch
new file mode 100644
index 0000000000..0688d6e4f1
--- /dev/null
+++ b/meta/recipes-devtools/mtools/mtools/disable-hardcoded-configs.patch
@@ -0,0 +1,23 @@
1Disabled reading host configs.
2
3Upstream-Status: Pending
4
5Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
6
7--- mtools-4.0.18/config.c.orig 2017-06-13 12:27:38.644000000 +0300
8+++ mtools-4.0.18/config.c 2017-06-13 12:28:47.576000000 +0300
9@@ -701,14 +701,6 @@
10 memcpy(devices, const_devices,
11 nr_const_devices*sizeof(struct device));
12
13- (void) ((parse(CONF_FILE,1) |
14- parse(LOCAL_CONF_FILE,1) |
15- parse(SYS_CONF_FILE,1)) ||
16- (parse(OLD_CONF_FILE,1) |
17- parse(OLD_LOCAL_CONF_FILE,1)));
18- /* the old-name configuration files only get executed if none of the
19- * new-name config files were used */
20-
21 homedir = get_homedir();
22 if ( homedir ){
23 strncpy(conf_file, homedir, MAXPATHLEN );